public void ParseDotNetMethodMethodWithParenthesis()
{
Lexer tokenizer = new Lexer("(anObject !nativeMethod)");
Token token;
token = tokenizer.NextToken();
Assert.IsNotNull(token);
Assert.AreEqual("(", token.Value);
Assert.AreEqual(TokenType.Punctuation, token.Type);
token = tokenizer.NextToken();
Assert.IsNotNull(token);
Assert.AreEqual("anObject", token.Value);
Assert.AreEqual(TokenType.Name, token.Type);
token = tokenizer.NextToken();
Assert.IsNotNull(token);
Assert.AreEqual("!nativeMethod", token.Value);
Assert.AreEqual(TokenType.Name, token.Type);
token = tokenizer.NextToken();
Assert.IsNotNull(token);
Assert.AreEqual(")", token.Value);
Assert.AreEqual(TokenType.Punctuation, token.Type);
token = tokenizer.NextToken();
Assert.IsNull(token);
}