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

ParseSimpleWhile() private method

private ParseSimpleWhile ( ) : void
return void
        public void ParseSimpleWhile()
        {
            ICommand command = ParseCommand("while (a<10) a=a+1;");

            Assert.IsNotNull(command);
            Assert.IsInstanceOfType(command, typeof(WhileCommand));

            WhileCommand whilecmd = (WhileCommand)command;

            Assert.IsNotNull(whilecmd.Condition);
            Assert.IsNotNull(whilecmd.Command);
            Assert.IsInstanceOfType(whilecmd.Command, typeof(SetCommand));
        }
ParserTests