AjScript.Tests.Language.FunctionTests.FunctionHasCallMethod C# (CSharp) Method

FunctionHasCallMethod() private method

private FunctionHasCallMethod ( ) : void
return void
        public void FunctionHasCallMethod()
        {
            ICommand body = new ReturnCommand(new VariableExpression("x"));
            Function function = new Function(new string[] { "x" }, body);

            object result = function.GetValue("call");

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(ICallable));
        }