コード例 #1
0
 [Test] public void LogicalOperation()
 {
     Assert.AreEqual(0x0123456 & 0x654321, GenericOperator.And(0x0123456, 0x654321));
     Assert.AreEqual(0x0123456 | 0x654321, GenericOperator.Or(0x0123456, 0x654321));
     Assert.AreEqual(0x0123456 ^ 0x654321, GenericOperator.Xor(0x0123456, 0x654321));
     Assert.AreEqual(~0x0123456, GenericOperator.Not(0x0123456));
 }