Exemplo n.º 1
0
        public void EILegacyCheck()
        {
            string tempRoot = PlatformUtils.GetPathForProjectFile("Parser" + Path.DirectorySeparatorChar + "EILegacy");

            int nbOfTests = 0;

            string[] extensions = { ".tcbl", ".cbl" };

            string[] compilerExtensions = extensions.Concat(new[] { ".cpy" }).ToArray();


            //Console.WriteLine("Entering directory \"" + dirname + "\" [" + string.Join(", ", extensions) + "]:");
            var folderTester = new FolderTester(tempRoot, tempRoot, tempRoot, extensions, compilerExtensions);

            folderTester.Test(false, false, true);

            nbOfTests += folderTester.GetTestCount();
            Console.Write("\n");

            Console.Write("Number of tests: " + nbOfTests + "\n");
            Assert.IsTrue(nbOfTests > 0, "No tests found");
        }