public void TestSyncLock() { VBLexer lexer = GenerateLexer(new StringReader("SyncLock")); Assert.AreEqual(Tokens.SyncLock, lexer.NextToken().Kind); }
public void TestDo() { VBLexer lexer = GenerateLexer(new StringReader("Do")); Assert.AreEqual(Tokens.Do, lexer.NextToken().Kind); }
public void TestElseIf() { VBLexer lexer = GenerateLexer(new StringReader("ElseIf")); Assert.AreEqual(Tokens.ElseIf, lexer.NextToken().Kind); }
public void TestCUShort() { VBLexer lexer = GenerateLexer(new StringReader("CUShort")); Assert.AreEqual(Tokens.CUShort, lexer.NextToken().Kind); }
public void TestDescending() { VBLexer lexer = GenerateLexer(new StringReader("Descending")); Assert.AreEqual(Tokens.Descending, lexer.NextToken().Kind); }
public void TestByVal() { VBLexer lexer = GenerateLexer(new StringReader("ByVal")); Assert.AreEqual(Tokens.ByVal, lexer.NextToken().Kind); }
public void TestCSByte() { VBLexer lexer = GenerateLexer(new StringReader("CSByte")); Assert.AreEqual(Tokens.CSByte, lexer.NextToken().Kind); }
public void TestWithEvents() { VBLexer lexer = GenerateLexer(new StringReader("WithEvents")); Assert.AreEqual(Tokens.WithEvents, lexer.NextToken().Kind); }
public void TestXor() { VBLexer lexer = GenerateLexer(new StringReader("Xor")); Assert.AreEqual(Tokens.Xor, lexer.NextToken().Kind); }
public void TestVariant() { VBLexer lexer = GenerateLexer(new StringReader("Variant")); Assert.AreEqual(Tokens.Variant, lexer.NextToken().Kind); }
public void TestWhen() { VBLexer lexer = GenerateLexer(new StringReader("When")); Assert.AreEqual(Tokens.When, lexer.NextToken().Kind); }
public void TestUnicode() { VBLexer lexer = GenerateLexer(new StringReader("Unicode")); Assert.AreEqual(Tokens.Unicode, lexer.NextToken().Kind); }
public void TestCloseParenthesis() { VBLexer lexer = GenerateLexer(new StringReader(")")); Assert.AreEqual(Tokens.CloseParenthesis, lexer.NextToken().Kind); }
public void TestThrow() { VBLexer lexer = GenerateLexer(new StringReader("Throw")); Assert.AreEqual(Tokens.Throw, lexer.NextToken().Kind); }
public void TestAssembly() { VBLexer lexer = GenerateLexer(new StringReader("Assembly")); Assert.AreEqual(Tokens.Assembly, lexer.NextToken().Kind); }
public void TestGetXmlNamespace() { VBLexer lexer = GenerateLexer(new StringReader("GetXmlNamespace")); Assert.AreEqual(Tokens.GetXmlNamespace, lexer.NextToken().Kind); }
public void TestConcatString() { VBLexer lexer = GenerateLexer(new StringReader("&")); Assert.AreEqual(Tokens.ConcatString, lexer.NextToken().Kind); }
public void TestLessThan() { VBLexer lexer = GenerateLexer(new StringReader("<")); Assert.AreEqual(Tokens.LessThan, lexer.NextToken().Kind); }
public void TestClass() { VBLexer lexer = GenerateLexer(new StringReader("Class")); Assert.AreEqual(Tokens.Class, lexer.NextToken().Kind); }
public void TestGreaterEqual() { VBLexer lexer = GenerateLexer(new StringReader(">=")); Assert.AreEqual(Tokens.GreaterEqual, lexer.NextToken().Kind); }
public void TestDivInteger() { VBLexer lexer = GenerateLexer(new StringReader("\\")); Assert.AreEqual(Tokens.DivInteger, lexer.NextToken().Kind); }
public void TestShiftLeft() { VBLexer lexer = GenerateLexer(new StringReader("<<")); Assert.AreEqual(Tokens.ShiftLeft, lexer.NextToken().Kind); }
public void TestCustom() { VBLexer lexer = GenerateLexer(new StringReader("Custom")); Assert.AreEqual(Tokens.Custom, lexer.NextToken().Kind); }
public void TestShiftRightAssign() { VBLexer lexer = GenerateLexer(new StringReader(">>=")); Assert.AreEqual(Tokens.ShiftRightAssign, lexer.NextToken().Kind); }
public void TestDirectCast() { VBLexer lexer = GenerateLexer(new StringReader("DirectCast")); Assert.AreEqual(Tokens.DirectCast, lexer.NextToken().Kind); }
public void TestColonAssign() { VBLexer lexer = GenerateLexer(new StringReader(":=")); Assert.AreEqual(Tokens.ColonAssign, lexer.NextToken().Kind); }
public void TestTripleDot() { VBLexer lexer = GenerateLexer(new StringReader("...")); Assert.AreEqual(Tokens.TripleDot, lexer.NextToken().Kind); }
public void TestAddressOf() { VBLexer lexer = GenerateLexer(new StringReader("AddressOf")); Assert.AreEqual(Tokens.AddressOf, lexer.NextToken().Kind); }
public void TestErase() { VBLexer lexer = GenerateLexer(new StringReader("Erase")); Assert.AreEqual(Tokens.Erase, lexer.NextToken().Kind); }
public void TestSub() { VBLexer lexer = GenerateLexer(new StringReader("Sub")); Assert.AreEqual(Tokens.Sub, lexer.NextToken().Kind); }