public void RaiseWhenTwoManyWordsInCondition() { Parser parser = new Parser("rule\r\nwhen\r\na is 48 c"); MyAssert.Throws<LexerException>(() => parser.ParseRule(), "Expected End of Line/Input"); }