AjScript.Tests.Primitives.StringFunctionTests.InvokeWithStringArgument C# (CSharp) Method

InvokeWithStringArgument() private method

private InvokeWithStringArgument ( ) : void
return void
        public void InvokeWithStringArgument()
        {
            StringFunction function = new StringFunction(null);

            var result = function.Invoke(null, null, new object[] { "foo" });

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(string));
            Assert.AreEqual("foo", result);
        }