Beispiel #1
0
 private void TestDeepEquals(Error objectA, Error objectB, bool expect, bool expectDeep)
 {
     Assert.AreEqual(expectDeep, objectA.DeepEquals(objectB));
     Assert.AreEqual(expectDeep, objectB.DeepEquals(objectA));
     Assert.AreEqual(expect, objectA.Equals(objectB));
     Assert.AreEqual(expect, objectB.Equals(objectA));
 }
Beispiel #2
0
        public void TestErrorDeserialize_01()
        {
            Error error = new Error("message 1");

            string str = XmlHelper.Instance.ToXmlString<Error>(error);

            Error des = XmlHelper.Instance.FromXmlString<Error>(str);
            Assert.IsTrue(error.DeepEquals(des));
        }
Beispiel #3
0
        public void TestErrorConstructor_01()
        {
            Error error = new Error();
            error.Message = "message 1";

            Error error2 = new Error("message 1");

            Assert.IsTrue(error.DeepEquals(error2));
        }