public void Generic() { var expected = new TypeParts("GenericType", "ns123", new[] { new TypeParts("string", "sys"), new TypeParts("int"), new TypeParts("SomeOtherType", "ns4") }.ToImmutableArray); var actual = TypePartsParser.Default.Get(GenericType); Assert.Equal(expected, actual, TypePartsEqualityComparer.Default); Assert.Equal(GenericType.Replace(" ", ""), TypePartsFormatter.Default.Get(actual)); }