public void ShouldNotStampGenericTypeTwice() { var serializer = new Serializer(settings.GetSettings()); var memoryStream = new MemoryStream(); var o = new ClassWithGenerics(); serializer.Serialize(o, memoryStream); memoryStream.Seek(0, SeekOrigin.Begin); var strings = GetString(memoryStream.GetBuffer()); Assert.AreEqual(1, NumberOfOccurences(strings, "System.Collections.Generic.List`1")); }
public void GenericPicking(ClassWithGenerics <bool> x) { AmbigousMethodsTests.Output = "GenericPicking_bool"; }
public void GenericPicking(ClassWithGenerics <int> x) { AmbigousMethodsTests.Output = "GenericPicking_int"; }