Example #1
0
 internal static void SkipLines(this int number, TokenizerForTesting tokenizer)
 {
     for (int i = 0; i < number; i++)
     {
         tokenizer.SkipLine();
     }
 }
Example #2
0
        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);
            }
        }