Esempio n. 1
0
 public void TestProtoSerializesProtoContractAsExpected()
 {
     ProtoWithFields obj = new ProtoWithFields { Foo = 123, Bar = "abc" },
         clone = Serializer.DeepClone(obj);
     Assert.AreEqual(obj.Foo, clone.Foo, "Foo");
     Assert.AreEqual(obj.Bar, clone.Bar, "Bar");
 }
Esempio n. 2
0
        public void TestProtoSerializesProtoContractAsExpected()
        {
            ProtoWithFields obj = new ProtoWithFields {
                Foo = 123, Bar = "abc"
            },
                            clone = Serializer.DeepClone(obj);

            Assert.AreEqual(obj.Foo, clone.Foo, "Foo");
            Assert.AreEqual(obj.Bar, clone.Bar, "Bar");
        }