Equals() public static method

public static Equals ( SqlInt16 x, SqlInt16 y ) : SqlBoolean
x SqlInt16
y SqlInt16
return SqlBoolean
Ejemplo n.º 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");
		}
Ejemplo n.º 2
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 ("Test#1", !Test0.Equals (Test158));
                        Assert ("Test#2", !Test158.Equals (Test180));
                        Assert ("Test#3", !Test180.Equals (new SqlString ("TEST")));
                        Assert ("Test#4", Test180.Equals (Test180II));
                }
Ejemplo n.º 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.True(!Test0.Equals(Test158));
            Assert.True(!Test158.Equals(Test180));
            Assert.True(!Test180.Equals(new SqlString("TEST")));
            Assert.True(Test180.Equals(Test180II));
        }