public void ParsesCorrectly() { classUnderTest.ParseExpression().ShouldGenerateXml(@" <expression> <term> <identifier kind='subroutine' isDefinition='false'>subroutineName</identifier> <symbol>(</symbol> <expressionList> <expression> <term> <integerConstant>5</integerConstant> </term> </expression> <symbol>,</symbol> <expression> <term> <stringConstant>rhubarb</stringConstant> </term> </expression> </expressionList> <symbol>)</symbol> </term> </expression> "); }
public void ParsesCorrectly() { classUnderTest.ParseExpression().ShouldGenerateXml(@" <expression> <term> <identifier kind='class' isDefinition='false'>myClass</identifier> <symbol>.</symbol> <identifier kind='subroutine' isDefinition='false'>doSomething</identifier> <symbol>(</symbol> <expressionList> <expression> <term> <integerConstant>5</integerConstant> </term> </expression> </expressionList> <symbol>)</symbol> </term> </expression> "); }
public void ParsesCorrectly() { classUnderTest.ParseExpression().ShouldGenerateXml(@" <expression> <term> <identifier>myClass</identifier> <symbol>.</symbol> <identifier>doSomething</identifier> <symbol>(</symbol> <expressionList> <expression> <term> <integerConstant>5</integerConstant> </term> </expression> </expressionList> <symbol>)</symbol> </term> </expression> "); }