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

ParseSetArrayCommandWithDotExpression() private method

private ParseSetArrayCommandWithDotExpression ( ) : void
return void
        public void ParseSetArrayCommandWithDotExpression()
        {
            ICommand command = ParseCommand("b.Values[0] = 1;");

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

            SetArrayCommand setcmd = (SetArrayCommand)command;

            Assert.IsInstanceOfType(setcmd.LeftValue, typeof(DotExpression));
            Assert.AreEqual(1, setcmd.Arguments.Count);
            Assert.IsInstanceOfType(setcmd.Expression, typeof(ConstantExpression));
        }
ParserTests