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)); }
public HmdGlobalToken(HmdGlobalTokenType type, UInt32 line, String text) { this.type = type; this.line = line; this.text = text; }
public HmdGlobalToken(HmdGlobalTokenType type, UInt32 line) { this.type = type; this.line = line; this.text = null; }