public void TypeWithProtosAndDataContract_UseAny_ShouldSerializeBoth()
 {
     var orig = new TypeWithProtosAndDataContract_UseAny { Foo = 123, Bar = 456 };
     var clone = Serializer.DeepClone(orig);
     Assert.AreEqual(123, clone.Foo);
     Assert.AreEqual(456, clone.Bar);
 }
Esempio n. 2
0
        public void TypeWithProtosAndDataContract_UseAny_ShouldSerializeBoth()
        {
            var orig = new TypeWithProtosAndDataContract_UseAny {
                Foo = 123, Bar = 456
            };
            var clone = Serializer.DeepClone(orig);

            Assert.Equal(123, clone.Foo);
            Assert.Equal(456, clone.Bar);
        }