Beispiel #1
0
        public void EqualsMethod()
        {
            SqlInt16 Test0     = new SqlInt16(0);
            SqlInt16 Test158   = new SqlInt16(158);
            SqlInt16 Test180   = new SqlInt16(180);
            SqlInt16 Test180II = new SqlInt16(180);

            Assert.IsTrue(!Test0.Equals(Test158), "Test#1");
            Assert.IsTrue(!Test158.Equals(Test180), "Test#2");
            Assert.IsTrue(!Test180.Equals(new SqlString("TEST")), "Test#3");
            Assert.IsTrue(Test180.Equals(Test180II), "Test#4");
        }
        public void EqualsMethod()
        {
            SqlInt16 Test0     = new SqlInt16(0);
            SqlInt16 Test158   = new SqlInt16(158);
            SqlInt16 Test180   = new SqlInt16(180);
            SqlInt16 Test180II = new SqlInt16(180);

            Assert.True(!Test0.Equals(Test158));
            Assert.True(!Test158.Equals(Test180));
            Assert.True(!Test180.Equals(new SqlString("TEST")));
            Assert.True(Test180.Equals(Test180II));
        }
Beispiel #3
0
        public void EqualsMethod()
        {
            SqlInt16 test0     = new SqlInt16(0);
            SqlInt16 test158   = new SqlInt16(158);
            SqlInt16 test180   = new SqlInt16(180);
            SqlInt16 test180II = new SqlInt16(180);

            Assert.False(test0.Equals(test158));
            Assert.False(test0.Equals((object)test158));
            Assert.False(test158.Equals(test180));
            Assert.False(test158.Equals((object)test180));
            Assert.False(test180.Equals(new SqlString("TEST")));
            Assert.True(test180.Equals(test180II));
            Assert.True(test180.Equals((object)test180II));
        }
Beispiel #4
0
        public void StaticEqualsMethod()
        {
            SqlInt16 Test34   = new SqlInt16(34);
            SqlInt16 Test34II = new SqlInt16(34);
            SqlInt16 Test15   = new SqlInt16(15);

            Assert.IsTrue(SqlInt16.Equals(Test34, Test34II).Value, "Test#1");
            Assert.IsTrue(!SqlInt16.Equals(Test34, Test15).Value, "Test#2");
            Assert.IsTrue(!SqlInt16.Equals(Test15, Test34II).Value, "Test#3");
        }
Beispiel #5
0
        public void StaticEqualsMethod()
        {
            SqlInt16 test34   = new SqlInt16(34);
            SqlInt16 test34II = new SqlInt16(34);
            SqlInt16 test15   = new SqlInt16(15);

            Assert.True(SqlInt16.Equals(test34, test34II).Value);
            Assert.False(SqlInt16.Equals(test34, test15).Value);
            Assert.False(SqlInt16.Equals(test15, test34II).Value);
        }