private EvaluateAndCallForm ( string text, IList | ||
text | string | |
arguments | IList | |
expected | object | |
return | void |
private void EvaluateAndCallForm(string text, IList<object> arguments, object expected)
{
var result = this.EvaluateForm(text);
Assert.IsNotNull(result);
Assert.IsInstanceOfType(result, typeof(IFunction));
var func = (IFunction)result;
Assert.AreEqual(expected, func.Apply(null, arguments));
}