示例#1
0
        public void XmlSerializeDeserialize_Empty_AreEqual()
        {
            var input = new FormattableArgumentsSerializeObject()
            {
                Id   = 17,
                Obj  = FormattingArguments.None,
                Date = new DateTime(1970, 02, 14),
            };
            var exp = new FormattableArgumentsSerializeObject()
            {
                Id   = 17,
                Obj  = FormattingArguments.None,
                Date = new DateTime(1970, 02, 14),
            };
            var act = SerializationTest.XmlSerializeDeserialize(input);

            Assert.AreEqual(exp.Id, act.Id, "Id");
            Assert.AreEqual(exp.Obj, act.Obj, "Obj");
            DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");;
        }
示例#2
0
 public void XmlSerializeDeserialize_Empty_AreEqual()
 {
     var input = new FormattableArgumentsSerializeObject()
     {
         Id = 17,
         Obj = FormattingArguments.None,
         Date = new DateTime(1970, 02, 14),
     };
     var exp = new FormattableArgumentsSerializeObject()
     {
         Id = 17,
         Obj = FormattingArguments.None,
         Date = new DateTime(1970, 02, 14),
     };
     var act = SerializationTest.XmlSerializeDeserialize(input);
     Assert.AreEqual(exp.Id, act.Id, "Id");
     Assert.AreEqual(exp.Obj, act.Obj, "Obj");
     DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");;
 }