Utility for the test suite manager.
 public static void Initialize(MainWindow mainWindow, Utility utility)
 {
     Pages.mainWindow = mainWindow;
     util = utility;
     TestSuiteWindow = new TestSuiteWindow();
     WelcomePage = new WelcomePage();
     RulePage = new RulePage();
     ConfigMethodPage = new ConfigMethodPage();
     ConfigPage = new ConfigPage();
     RunPage = new RunPage();
     AutoDetectionPage = new AutoDetectionPage();
     SUTInfoPage = new SUTInfoPage();
     AdapterPage = new AdapterPage();
 }
 /// <summary>
 /// Generates text report.
 /// </summary>
 public void GenerateTextReport(string filename, string outcome, Utility.SortBy sortBy, CaseListItem.Separator separator)
 {
     string upperCaseOutcome = outcome.ToUpper();
     bool pass = true, fail = true, inconclusive = false, notrun = false;
     if (outcome != null)
     {
         pass = upperCaseOutcome.Contains("PASS");
         fail = upperCaseOutcome.Contains("FAIL");
         inconclusive = upperCaseOutcome.Contains("INCONCLUSIVE");
         notrun = upperCaseOutcome.Contains("NOTRUN");
     }
     var list = util.GenerateTextCaseListItems(pass,fail, inconclusive, notrun);
     string report = Utility.GeneratePlainTextReport(list, true, sortBy, separator);
     using (StreamWriter sw = new StreamWriter(filename))
     {
         sw.Write(report);
     }
 }