public void XorsBooleans() { OpXOR bxor1 = new OpXOR(new BooleanLiteralNode("true"), new BooleanLiteralNode("false")); Assert.AreEqual(true ^ false, bxor1.GetValue(null, null)); OpXOR bxor2 = new OpXOR(new BooleanLiteralNode("true"), new BooleanLiteralNode("true")); Assert.AreEqual(true ^ true, bxor2.GetValue(null, null)); }
public void XorsNumbers() { OpXOR bxor = new OpXOR(new IntLiteralNode("2"), new IntLiteralNode("3")); Assert.AreEqual(2 ^ 3, bxor.GetValue(null, null)); }