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));
}