private void ClearCurrentTest(PerfTestBase testResult, DateTime endTime = default(DateTime)) { if (testResult != null) { // Set end time for this test testResult.EndTime = (endTime == default(DateTime)) ? DateTime.Now : endTime; } // Clear out the thread local storage reference to test data perfTestSvc.SetCurrentTestResult(null); }
/// <inheritDoc/> public virtual bool Equals(PerfTestBase other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.StartTime.Equals(StartTime) && other.EndTime.Equals(EndTime) && Equals(other.Annotation, Annotation); }