Exemple #1
0
        public void TestEquals2()
        {
            MyUIntBase temp1 = new MyUIntBase();
            object     temp2 = null;
            object     temp3 = new object();

            Assert.AreEqual(false, temp1.Equals(temp2));
            Assert.AreEqual(false, temp1.Equals(temp3));
        }
Exemple #2
0
        public void TestEquals1()
        {
            MyUIntBase temp1 = new MyUIntBase();
            MyUIntBase temp2 = new MyUIntBase();
            UInt160    temp3 = new UInt160();

            Assert.AreEqual(false, temp1.Equals(null));
            Assert.AreEqual(true, temp1.Equals(temp1));
            Assert.AreEqual(true, temp1.Equals(temp2));
            Assert.AreEqual(false, temp1.Equals(temp3));
        }