public void ParseSimpleFunction()
{
IExpression expression = this.ParseExpression("function(x) { return x+1;}");
Assert.IsNotNull(expression);
Assert.IsInstanceOfType(expression, typeof(FunctionExpression));
FunctionExpression funexpr = (FunctionExpression)expression;
Assert.IsInstanceOfType(funexpr.Body, typeof(CompositeCommand));
Assert.AreEqual(1, funexpr.ParameterNames.Length);
Assert.IsNull(funexpr.Name);
}