public void AddTest(PerformanceTime entry) { if (!tests.ContainsKey(entry.Test)) { tests[entry.Test] = new List <PerformanceTime>(); } tests[entry.Test].Add(entry); }
public void AddTest(PerformanceTime entry) { if (!tests.ContainsKey(entry.Test)) { tests[entry.Test] = new List<PerformanceTime>(); } tests[entry.Test].Add(entry); }
private static void PerformTest(ref PerformanceTable table, IEnumerable tests, TestType type) { foreach (Test test in tests) { test.PerformTest(); PerformanceTime currentTest = new PerformanceTime(test.TypeToTest, test.TimeResult, type); table.AddTest(currentTest); } }