Beispiel #1
0
        public void TestFlagsEnum()
        {
            var orig = new TypeWithFlags {
                Foo = TypeWithFlags.FlagsEnum.A | TypeWithFlags.FlagsEnum.B
            };
            var clone = Serializer.DeepClone(orig);

            Assert.Equal(orig.Foo, clone.Foo);
        }
 public void TestFlagsEnum()
 {
     var orig = new TypeWithFlags { Foo = TypeWithFlags.FlagsEnum.A | TypeWithFlags.FlagsEnum.B };
     var clone = Serializer.DeepClone(orig);
     Assert.AreEqual(orig.Foo, clone.Foo);
 }