Exemplo n.º 1
0
        public void TestXor()
        {
            SqlByte testByte14  = new SqlByte(14);
            SqlByte testByte58  = new SqlByte(58);
            SqlByte testByte130 = new SqlByte(130);

            Assert.Equal((byte)52, SqlByte.Xor(testByte14, testByte58).Value);
            Assert.Equal((byte)140, SqlByte.Xor(testByte14, testByte130).Value);
            Assert.Equal((byte)184, SqlByte.Xor(testByte58, testByte130).Value);
        }
Exemplo n.º 2
0
        public void TestXor()
        {
            SqlByte TestByte14  = new SqlByte(14);
            SqlByte TestByte58  = new SqlByte(58);
            SqlByte TestByte130 = new SqlByte(130);

            Assert.AreEqual((byte)52, SqlByte.Xor(TestByte14, TestByte58).Value, "Xor method 1" + Error);
            Assert.AreEqual((byte)140, SqlByte.Xor(TestByte14, TestByte130).Value, "Xor method 2" + Error);
            Assert.AreEqual((byte)184, SqlByte.Xor(TestByte58, TestByte130).Value, "Xor method 3" + Error);
        }