AjScript.Tests.Interpreter.ParserTests.HoistingVarCommands C# (CSharp) Method

HoistingVarCommands() private method

private HoistingVarCommands ( ) : void
return 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