internal static void SkipLines(this int number, TokenizerForTesting tokenizer) { for (int i = 0; i < number; i++) { tokenizer.SkipLine(); } }
private void LoadFileAndTokenizer(string path, string fileName, Action <TokenizerForTesting> action) { string pathToSearch = TestHelper.GetPathToIntegrationTestData(path); string fullPath = Path.Combine(pathToSearch, fileName); using (StreamReader reader = File.OpenText(fullPath)) { var tokenizer = new TokenizerForTesting(reader); action(tokenizer); } }