Beispiel #1
0
        public void Subtract()
        {
            int a = 7;
            int b = 5;

            SqlInt32 x = new SqlInt32(a);
            SqlInt32 y = new SqlInt32(b);
            SqlInt32 z = x - y;

            Assert.Equal(z.Value, a - b);
            z = SqlInt32.Subtract(x, y);
            Assert.Equal(z.Value, a - b);
        }
Beispiel #2
0
        public void Subtract()
        {
            int a = 7;
            int b = 5;

            SqlInt32 x = new SqlInt32(a);
            SqlInt32 y = new SqlInt32(b);
            SqlInt32 z = x - y;

            Assert.AreEqual(z.Value, a - b, "Subtraction operator does not work correctly");
            z = SqlInt32.Subtract(x, y);
            Assert.AreEqual(z.Value, a - b, "Subtraction function does not work correctly");
        }