public void Evaluate_NotEqual_String_False_Test() { Expression left = CreateStringLiteral("notEqual"); Expression right = CreateStringLiteral("notEqual"); Expression notEqual = new NotEqual(left, right, pos); Values.Bool value = ((Values.Bool)notEqual.Accept(evaluator)); Assert.IsFalse(value.GetValue()); }
public void Evaluate_NotEqual_Int_True_Test() { Expression left = CreateIntLiteral(1); Expression right = CreateIntLiteral(2); Expression notEqual = new NotEqual(left, right, pos); Values.Bool value = ((Values.Bool)notEqual.Accept(evaluator)); Assert.IsTrue(value.GetValue()); }