AjTalk.Tests.Compiler.LexerTests.ProcessSpecialNameAndParenthesis C# (CSharp) Метод

ProcessSpecialNameAndParenthesis() приватный Метод

private ProcessSpecialNameAndParenthesis ( ) : void
Результат void
        public void ProcessSpecialNameAndParenthesis()
        {
            Lexer tokenizer = new Lexer("@System.IO.FileInfo)");

            Token token;

            token = tokenizer.NextToken();
            Assert.IsNotNull(token);
            Assert.AreEqual("@System.IO.FileInfo", 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);
        }