public void Evaluate_should_return_true_when_expression_match() { const string script = @" value.i == 2 "; var context = new ScriptContext { ["value"] = new { i = 2 } }; var result = sut.Evaluate(context, script); Assert.True(result); }
public void Should_evaluate_to_true_when_expression_match() { var result = sut.Evaluate("value", new { i = 2 }, "value.i == 2"); Assert.True(result); }