Esempio n. 1
0
        public void TestSyncLock()
        {
            VBLexer lexer = GenerateLexer(new StringReader("SyncLock"));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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