예제 #1
0
        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"));
        }
예제 #2
0
 public void GenericPicking(ClassWithGenerics <bool> x)
 {
     AmbigousMethodsTests.Output = "GenericPicking_bool";
 }
예제 #3
0
 public void GenericPicking(ClassWithGenerics <int> x)
 {
     AmbigousMethodsTests.Output = "GenericPicking_int";
 }
        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"));
        }