public void XmlSerializeDeserialize_Empty_AreEqual()
        {
            var input = new EmailAddressCollectionSerializeObject
            {
                Id   = 17,
                Obj  = new EmailAddressCollection(),
                Date = new DateTime(1970, 02, 14),
            };
            var exp = new EmailAddressCollectionSerializeObject
            {
                Id   = 17,
                Obj  = new EmailAddressCollection(),
                Date = new DateTime(1970, 02, 14),
            };
            var act = SerializationTest.XmlSerializeDeserialize(input);

            Assert.AreEqual(exp.Id, act.Id, "Id");
            CollectionAssert.AreEqual(exp.Obj, act.Obj, "Obj");
            Assert.AreEqual(exp.Date, act.Date, "Date");
        }
        public void DataContractSerializeDeserialize_EmailAddressSerializeObject_AreEqual()
        {
            var input = new EmailAddressCollectionSerializeObject()
            {
                Id   = 17,
                Obj  = GetTestInstance(),
                Date = new DateTime(1970, 02, 14),
            };
            var exp = new EmailAddressCollectionSerializeObject()
            {
                Id   = 17,
                Obj  = GetTestInstance(),
                Date = new DateTime(1970, 02, 14),
            };
            var act = SerializationTest.DataContractSerializeDeserialize(input);

            Assert.AreEqual(exp.Id, act.Id, "Id");
            CollectionAssert.AreEqual(exp.Obj, act.Obj, "Obj");
            DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");;
        }
 public void XmlSerializeDeserialize_Empty_AreEqual()
 {
     var input = new EmailAddressCollectionSerializeObject()
     {
         Id = 17,
         Obj = new EmailAddressCollection(),
         Date = new DateTime(1970, 02, 14),
     };
     var exp = new EmailAddressCollectionSerializeObject()
     {
         Id = 17,
         Obj = new EmailAddressCollection(),
         Date = new DateTime(1970, 02, 14),
     };
     var act = SerializationTest.XmlSerializeDeserialize(input);
     Assert.AreEqual(exp.Id, act.Id, "Id");
     CollectionAssert.AreEqual(exp.Obj, act.Obj, "Obj");
     DateTimeAssert.AreEqual(exp.Date, act.Date, "Date"); ;
 }