コード例 #1
0
        public void Xor()
        {
            SqlInt64 Test14  = new SqlInt64(14);
            SqlInt64 Test58  = new SqlInt64(58);
            SqlInt64 Test130 = new SqlInt64(130);
            SqlInt64 TestMax = new SqlInt64(SqlInt64.MaxValue.Value);
            SqlInt64 Test0   = new SqlInt64(0);

            Assert.AreEqual((long)52, SqlInt64.Xor(Test14, Test58).Value, "#Q01");
            Assert.AreEqual((long)140, SqlInt64.Xor(Test14, Test130).Value, "#Q02");
            Assert.AreEqual((long)184, SqlInt64.Xor(Test58, Test130).Value, "#Q03");
            Assert.AreEqual((long)0, SqlInt64.Xor(TestMax, TestMax).Value, "#Q04");
            Assert.AreEqual(TestMax.Value, SqlInt64.Xor(TestMax, Test0).Value, "#Q05");
        }
コード例 #2
0
        public void Xor()
        {
            SqlInt64 test14  = new SqlInt64(14);
            SqlInt64 test58  = new SqlInt64(58);
            SqlInt64 test130 = new SqlInt64(130);
            SqlInt64 testMax = new SqlInt64(SqlInt64.MaxValue.Value);
            SqlInt64 test0   = new SqlInt64(0);

            Assert.Equal(52, SqlInt64.Xor(test14, test58).Value);
            Assert.Equal(140, SqlInt64.Xor(test14, test130).Value);
            Assert.Equal(184, SqlInt64.Xor(test58, test130).Value);
            Assert.Equal(0, SqlInt64.Xor(testMax, testMax).Value);
            Assert.Equal(testMax.Value, SqlInt64.Xor(testMax, test0).Value);
        }