107108109110111112113114115116117
{ EvaluationContext context = newContext(); Node left = newNode(context, true); Node right = newNode(context, true); Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(true, node.evaluate(context));
122123124125126127128129130131132
{ EvaluationContext context = newContext(); Node left = newNode(context, false); Node right = newNode(); Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(false, node.evaluate(context));
137138139140141142143144145146147
{ EvaluationContext context = newContext(); Node left = newNode(context, true); Node right = newNode(context, false); Node node = new NodeImpl(left, right, new AndEvaluator()); replayControls(); assertEquals(false, node.evaluate(context));