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