Пример #1
0
 /// <inheritDoc/>
 public void SetCurrentTestResult(TestResult curTestResult)
 {
     currentTestResult = curTestResult;
 }
Пример #2
0
        private TestResult SetupCurrentTest(TestSuiteResult testSuiteResult, string annotation,
            string typeName, string methodName)
        {
            // Add a new test data instance to test run results for this perf test
            TestResult testResult = new TestResult(typeName, methodName);
            testResult.Annotation = annotation;

            //
            // Put mutex on this instance of test suite results in case multiple threads
            // are trying to access it
            //
            lock (testSuiteResult)
            {
                testSuiteResult.TestResultList.Add(testResult);
            }

            //
            // Set current test data results object in thread local storage so it
            // can be accessed anywhere in stack
            //
            perfTestSvc.SetCurrentTestResult(testResult);
            return testResult;
        }
Пример #3
0
 /// <inheritDoc/>
 public virtual bool Equals(TestResult other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return base.Equals(other) && other.IsSuccess.Equals(IsSuccess);
 }