Example #1
0
        public void OnesComplement()
        {
            SqlInt16 Test12  = new SqlInt16(12);
            SqlInt16 Test128 = new SqlInt16(128);

            Assert.AreEqual((SqlInt16)(-13), SqlInt16.OnesComplement(Test12), "Test#1");
            Assert.AreEqual((SqlInt16)(-129), SqlInt16.OnesComplement(Test128), "Test#2");
        }
Example #2
0
        public void OnesComplement()
        {
            SqlInt16 Test12  = new SqlInt16(12);
            SqlInt16 Test128 = new SqlInt16(128);

            Assert.Equal((SqlInt16)(-13), SqlInt16.OnesComplement(Test12));
            Assert.Equal((SqlInt16)(-129), SqlInt16.OnesComplement(Test128));
        }