AjScript.Tests.Language.FunctionTests.FunctionHasApplyMethod C# (CSharp) 메소드

FunctionHasApplyMethod() 개인적인 메소드

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

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

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