AjTalk.Tests.Compiler.LexerTests.ParseDotNetObjectAndMethod C# (CSharp) Method

ParseDotNetObjectAndMethod() private method

private ParseDotNetObjectAndMethod ( ) : void
return void
        public void ParseDotNetObjectAndMethod()
        {
            Lexer tokenizer = new Lexer("@System.IO.FileInfo !new: 'FooBar.txt'");
            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("!new:", token.Value);
            Assert.AreEqual(TokenType.Name, token.Type);

            token = tokenizer.NextToken();
            Assert.IsNotNull(token);
            Assert.AreEqual("FooBar.txt", token.Value);
            Assert.AreEqual(TokenType.String, token.Type);
        }