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

FunctionLength() 개인적인 메소드

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

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

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result);
        }