public void TypeWithProtosAndDataContract_UseProtoOnly_ShouldSerializeFooOnly()
 {
     var orig = new TypeWithProtosAndDataContract_UseProtoOnly { Foo = 123, Bar = 456 };
     var clone = Serializer.DeepClone(orig);
     Assert.AreEqual(123, clone.Foo);
     Assert.AreEqual(0, clone.Bar);
 }
Beispiel #2
0
        public void TypeWithProtosAndDataContract_UseProtoOnly_ShouldSerializeFooOnly()
        {
            var orig = new TypeWithProtosAndDataContract_UseProtoOnly {
                Foo = 123, Bar = 456
            };
            var clone = Serializer.DeepClone(orig);

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