Пример #1
0
        public void EqualsTest5()
        {
            var a      = new FaceVal(22);
            var result = a.Equals(22u);

            Assert.IsTrue(result, "EqualsTest5 FAIL");
        }
Пример #2
0
        public void EqualsTest4()
        {
            var a      = new FaceVal('B');
            var result = a.Equals('B');

            Assert.IsTrue(result, "EqualsTest4 FAIL");
        }
Пример #3
0
        public void EqualsTest()
        {
            var    a      = new FaceVal(20);
            object b      = a;
            var    result = a.Equals(b);

            Assert.IsTrue(result, "EqualsTest FAIL");

            object c = new FaceVal(20);

            result = a.Equals(c);
            Assert.IsTrue(result, "EqualsTest FAIL");

            result = a.Equals((object)null);
            Assert.IsFalse(result, "EqualsTest FAIL");
        }
Пример #4
0
        public void EqualsTest1()
        {
            var a      = new FaceVal(20);
            var b      = new FaceVal(20);
            var result = a.Equals(b);

            Assert.IsTrue(result, "EqualsTest1 FAIL");
        }