public void CheckNistTest() { string samples = @"ThirdParty" + Path.DirectorySeparatorChar + "Nist"; string root = PlatformUtils.GetPathForProjectFile(samples); GrammarTest.CheckTests(root, @"NistTest", @"CheckNistResults.txt", ignoreWarningDiag: true); }
[Ignore] // Ignored, as everybody does not have a Samples folder. Remove this if you do have one. public void CheckGrammarCorrectness() { string regex = "*.PGM"; string samples = @"Samples"; string root = PlatformUtils.GetPathForProjectFile(samples); CheckTests(root, @"GrammarTest", @"CheckGrammarResults.txt", regex); }
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"); }