Example #1
0
        public void SerializeAndDeserialize_ObjectOfDerivedClassUsingInternalObjectSerializer()
        {
            var obj  = new TestClassWithInternalObjectSerializer_Derived();
            var copy = SerializeAndDeserializeObject(obj) as TestClassWithInternalObjectSerializer_Derived;

            Assert.Equal(obj, copy);
        }
 protected bool Equals(TestClassWithInternalObjectSerializer_Derived other)
 {
     return(base.Equals(other) &&
            String == other.String &&
            DateTime.Equals(other.DateTime));
 }
 protected bool Equals(TestClassWithInternalObjectSerializer_Derived other)
 {
     return(base.Equals(other) && AnotherString == other.AnotherString);
 }