AjScript.Tests.Interpreter.ParserTests.HoistingVarCommands C# (CSharp) Метод

HoistingVarCommands() приватный Метод

private HoistingVarCommands ( ) : void
Результат void
        public void HoistingVarCommands()
        {
            ICommand command = ParseCommands("x = 1; y=2; var x; var y;");
            Assert.IsInstanceOfType(command, typeof(CompositeCommand));
            CompositeCommand composite = (CompositeCommand)command;
            Assert.AreEqual(2, composite.CommandCount);
            Assert.AreEqual(2, composite.HoistedCommandCount);
            Assert.IsInstanceOfType(composite.HoistedCommands.First(), typeof(VarCommand));
        }
ParserTests