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));
}