예제 #1
0
        public void TestTypeValueEqual()
        {
            var expected = "tYpE";
            var ddType1  = new DDType(expected);
            var ddType2  = new DDType(expected);

            Assert.AreEqual(ddType1, ddType2);
            Assert.IsTrue(ddType2.Equals(ddType2), "Objects have to equal.");
            Assert.IsTrue(ddType2.Equals(ddType1), "Objects have to equal.");
        }
예제 #2
0
        public void TestTypeEqual()
        {
            var expected = "tYpE";
            var ddType1  = new DDType(expected);
            var ddType2  = ddType1;

            Assert.IsTrue(ddType1.Equals(ddType2), "Objects must be equals.");
            Assert.IsTrue(ddType2.Equals(ddType1), "Objects must be equals.");
        }
예제 #3
0
        public void TestTypeNotEqual()
        {
            var expected = "tYpE";
            var ddType1  = new DDType(expected);
            var ddType2  = new DDType(expected);

            Assert.IsFalse(ddType1.Equals(ddType2), "Objects cannot be equals.");
            Assert.IsFalse(ddType2.Equals(ddType1), "Objects cannot be equals.");
        }