public void Evaluate_NotEqual_Int_False_Test() { Expression left = CreateIntLiteral(1); Expression right = CreateIntLiteral(1); Expression notEqual = new NotEqual(left, right, pos); Values.Bool value = ((Values.Bool)notEqual.Accept(evaluator)); Assert.IsFalse(value.GetValue()); }
public void Evaluate_NotEqual_String_True_Test() { Expression left = CreateStringLiteral("equal"); Expression right = CreateStringLiteral("notEqual"); Expression notEqual = new NotEqual(left, right, pos); Values.Bool value = ((Values.Bool)notEqual.Accept(evaluator)); Assert.IsTrue(value.GetValue()); }
public void Evaluate_NotEqual_Bool_True_Test() { Expression left = CreateBoolLiteral(true); Expression right = CreateBoolLiteral(false); Expression notEqual = new NotEqual(left, right, pos); Values.Bool value = ((Values.Bool)notEqual.Accept(evaluator)); Assert.IsTrue(value.GetValue()); }