private static List <string> RunIndustrialActivityTestE(List <string> writeList, int numberOfRuns) { IndustrialActivityTest industrialActivityTest = new IndustrialActivityTest(); List <double> resultList = new List <double>(); writeList = AddHeader(writeList, "IndustrialActivityTestE - Industrial Activity, France, 3.(e)"); for (int i = 0; i < numberOfRuns; i++) { Console.WriteLine("Tests remaining: " + testsRemaining.ToString()); resultList.Add(industrialActivityTest.IndustrialActivityTestE()); testsRemaining--; } writeList = AddResults(writeList, resultList); return(writeList); }
private static List <string> RunIndustrialActivityTestA(List <string> writeList, int numberOfRuns) { IndustrialActivityTest industrialActivityTest = new IndustrialActivityTest(); List <double> resultList = new List <double>(); writeList = AddHeader(writeList, "IndustrialActivityTestA - Industrial Activity, Default"); for (int i = 0; i < numberOfRuns; i++) { Console.WriteLine("Tests remaining: " + testsRemaining.ToString()); resultList.Add(industrialActivityTest.IndustrialActivityTestA()); testsRemaining--; } // Since AddResults doesn't need specific info (like "IndustrialActivityTestA"), it can be moved to the top where the tests are called. // Return a list of doubles instead (the resultList) and work from there. writeList = AddResults(writeList, resultList); return(writeList); }