Esempio n. 1
0
        public void ValidateNextGlobalToken(String input, HmdGlobalTokenType type, UInt32 lines, String expectedText)
        {
            HmdTokenizer tokenizer = new HmdTokenizer(new StringReader(input), 0);

            HmdGlobalToken token = tokenizer.NextGlobalToken();

            Assert.AreEqual(lines, token.line);
            Assert.IsTrue(expectedText.Equals(token.text, StringComparison.CurrentCultureIgnoreCase));
        }
Esempio n. 2
0
 public HmdGlobalToken(HmdGlobalTokenType type, UInt32 line, String text)
 {
     this.type = type;
     this.line = line;
     this.text = text;
 }
Esempio n. 3
0
 public HmdGlobalToken(HmdGlobalTokenType type, UInt32 line)
 {
     this.type = type;
     this.line = line;
     this.text = null;
 }