public void DefineAndExecuteSimpleFunctionMethod() { FunctionMethod method = new FunctionMethod((context, receiver, arguments) => "Foo"); Assert.AreEqual("Foo", method.Execute(null, null, null)); }