///<summary> ///</summary> public void ExecuteTests(int start, int end) { if (_testCases.Count == 0) { return; } if (start < -1 || end < -1 || end >= _testCases.Count) { throw new IndexOutOfRangeException(); } if (start == -1) { start = 0; } if (end == -1) { end = _testCases.Count - 1; } for (int index = start; index <= end; index++) { GlobalLog.LogStatus("*************** Starting Test Case # " + index.ToString() + "***************"); CommonStorage.CleanAll(); TestCases[index].Execute(); GlobalLog.LogStatus("*************** End Test Case # " + index.ToString() + "***************"); GlobalLog.LogStatus(""); GlobalLog.LogStatus(""); } }
/// <summary> /// /// </summary> public static void CleanAll() { CommonStorage cs = _commonStorage; _commonStorage = new CommonStorage(); cs._storePerName.Clear(); cs._storePerType.Clear(); }