public void RaiseWhenConditionIsAtLastPosition() { Parser parser = new Parser("rule\r\nwhen\r\na"); MyAssert.Throws<LexerException>(() => parser.ParseRule(), "Unexpected End of Input"); }