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