Exemple #1
0
        public void TestSyncLock()
        {
            VBLexer lexer = GenerateLexer(new StringReader("SyncLock"));

            Assert.AreEqual(Tokens.SyncLock, lexer.NextToken().Kind);
        }
Exemple #2
0
        public void TestDo()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Do"));

            Assert.AreEqual(Tokens.Do, lexer.NextToken().Kind);
        }
Exemple #3
0
        public void TestElseIf()
        {
            VBLexer lexer = GenerateLexer(new StringReader("ElseIf"));

            Assert.AreEqual(Tokens.ElseIf, lexer.NextToken().Kind);
        }
Exemple #4
0
        public void TestCUShort()
        {
            VBLexer lexer = GenerateLexer(new StringReader("CUShort"));

            Assert.AreEqual(Tokens.CUShort, lexer.NextToken().Kind);
        }
Exemple #5
0
        public void TestDescending()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Descending"));

            Assert.AreEqual(Tokens.Descending, lexer.NextToken().Kind);
        }
Exemple #6
0
        public void TestByVal()
        {
            VBLexer lexer = GenerateLexer(new StringReader("ByVal"));

            Assert.AreEqual(Tokens.ByVal, lexer.NextToken().Kind);
        }
Exemple #7
0
        public void TestCSByte()
        {
            VBLexer lexer = GenerateLexer(new StringReader("CSByte"));

            Assert.AreEqual(Tokens.CSByte, lexer.NextToken().Kind);
        }
Exemple #8
0
        public void TestWithEvents()
        {
            VBLexer lexer = GenerateLexer(new StringReader("WithEvents"));

            Assert.AreEqual(Tokens.WithEvents, lexer.NextToken().Kind);
        }
Exemple #9
0
        public void TestXor()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Xor"));

            Assert.AreEqual(Tokens.Xor, lexer.NextToken().Kind);
        }
Exemple #10
0
        public void TestVariant()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Variant"));

            Assert.AreEqual(Tokens.Variant, lexer.NextToken().Kind);
        }
Exemple #11
0
        public void TestWhen()
        {
            VBLexer lexer = GenerateLexer(new StringReader("When"));

            Assert.AreEqual(Tokens.When, lexer.NextToken().Kind);
        }
Exemple #12
0
        public void TestUnicode()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Unicode"));

            Assert.AreEqual(Tokens.Unicode, lexer.NextToken().Kind);
        }
Exemple #13
0
        public void TestCloseParenthesis()
        {
            VBLexer lexer = GenerateLexer(new StringReader(")"));

            Assert.AreEqual(Tokens.CloseParenthesis, lexer.NextToken().Kind);
        }
Exemple #14
0
        public void TestThrow()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Throw"));

            Assert.AreEqual(Tokens.Throw, lexer.NextToken().Kind);
        }
Exemple #15
0
        public void TestAssembly()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Assembly"));

            Assert.AreEqual(Tokens.Assembly, lexer.NextToken().Kind);
        }
Exemple #16
0
        public void TestGetXmlNamespace()
        {
            VBLexer lexer = GenerateLexer(new StringReader("GetXmlNamespace"));

            Assert.AreEqual(Tokens.GetXmlNamespace, lexer.NextToken().Kind);
        }
Exemple #17
0
        public void TestConcatString()
        {
            VBLexer lexer = GenerateLexer(new StringReader("&"));

            Assert.AreEqual(Tokens.ConcatString, lexer.NextToken().Kind);
        }
Exemple #18
0
        public void TestLessThan()
        {
            VBLexer lexer = GenerateLexer(new StringReader("<"));

            Assert.AreEqual(Tokens.LessThan, lexer.NextToken().Kind);
        }
Exemple #19
0
        public void TestClass()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Class"));

            Assert.AreEqual(Tokens.Class, lexer.NextToken().Kind);
        }
Exemple #20
0
        public void TestGreaterEqual()
        {
            VBLexer lexer = GenerateLexer(new StringReader(">="));

            Assert.AreEqual(Tokens.GreaterEqual, lexer.NextToken().Kind);
        }
Exemple #21
0
        public void TestDivInteger()
        {
            VBLexer lexer = GenerateLexer(new StringReader("\\"));

            Assert.AreEqual(Tokens.DivInteger, lexer.NextToken().Kind);
        }
Exemple #22
0
        public void TestShiftLeft()
        {
            VBLexer lexer = GenerateLexer(new StringReader("<<"));

            Assert.AreEqual(Tokens.ShiftLeft, lexer.NextToken().Kind);
        }
Exemple #23
0
        public void TestCustom()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Custom"));

            Assert.AreEqual(Tokens.Custom, lexer.NextToken().Kind);
        }
Exemple #24
0
        public void TestShiftRightAssign()
        {
            VBLexer lexer = GenerateLexer(new StringReader(">>="));

            Assert.AreEqual(Tokens.ShiftRightAssign, lexer.NextToken().Kind);
        }
Exemple #25
0
        public void TestDirectCast()
        {
            VBLexer lexer = GenerateLexer(new StringReader("DirectCast"));

            Assert.AreEqual(Tokens.DirectCast, lexer.NextToken().Kind);
        }
Exemple #26
0
        public void TestColonAssign()
        {
            VBLexer lexer = GenerateLexer(new StringReader(":="));

            Assert.AreEqual(Tokens.ColonAssign, lexer.NextToken().Kind);
        }
Exemple #27
0
        public void TestTripleDot()
        {
            VBLexer lexer = GenerateLexer(new StringReader("..."));

            Assert.AreEqual(Tokens.TripleDot, lexer.NextToken().Kind);
        }
Exemple #28
0
        public void TestAddressOf()
        {
            VBLexer lexer = GenerateLexer(new StringReader("AddressOf"));

            Assert.AreEqual(Tokens.AddressOf, lexer.NextToken().Kind);
        }
Exemple #29
0
        public void TestErase()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Erase"));

            Assert.AreEqual(Tokens.Erase, lexer.NextToken().Kind);
        }
Exemple #30
0
        public void TestSub()
        {
            VBLexer lexer = GenerateLexer(new StringReader("Sub"));

            Assert.AreEqual(Tokens.Sub, lexer.NextToken().Kind);
        }