public void RaiseWhenInvalidCharacter() { Lexer lexer = new Lexer("["); MyAssert.Throws<LexerException>(() => lexer.NextToken(), "Unexpected '['"); }