예제 #1
0
 internal TwinCountingReportGenerator(string trackingId, string expectedSource, ITestResultCollection <TestOperationResult> expectedTestResults, string actualSource, ITestResultCollection <TestOperationResult> actualTestResults, string testOperationResultType, SimpleTestOperationResultComparer testResultComparer)
 {
     this.trackingId          = Preconditions.CheckNonWhiteSpace(trackingId, nameof(trackingId));
     this.expectedTestResults = Preconditions.CheckNotNull(expectedTestResults, nameof(expectedTestResults));
     this.expectedSource      = Preconditions.CheckNonWhiteSpace(expectedSource, nameof(expectedSource));
     this.actualSource        = Preconditions.CheckNonWhiteSpace(actualSource, nameof(actualSource));
     this.actualTestResults   = Preconditions.CheckNotNull(actualTestResults, nameof(actualTestResults));
     this.testResultComparer  = Preconditions.CheckNotNull(testResultComparer, nameof(testResultComparer));
     this.resultType          = Preconditions.CheckNonWhiteSpace(testOperationResultType, nameof(testOperationResultType));
 }
예제 #2
0
 internal TwinCountingReportGenerator(
     string testDescription,
     string trackingId,
     string expectedSource,
     IAsyncEnumerator <TestOperationResult> expectedTestResults,
     string actualSource,
     IAsyncEnumerator <TestOperationResult> actualTestResults,
     string testOperationResultType,
     SimpleTestOperationResultComparer testResultComparer,
     ushort unmatchedResultsMaxSize)
 {
     this.testDescription         = Preconditions.CheckNonWhiteSpace(testDescription, nameof(testDescription));
     this.trackingId              = Preconditions.CheckNonWhiteSpace(trackingId, nameof(trackingId));
     this.expectedTestResults     = Preconditions.CheckNotNull(expectedTestResults, nameof(expectedTestResults));
     this.expectedSource          = Preconditions.CheckNonWhiteSpace(expectedSource, nameof(expectedSource));
     this.actualSource            = Preconditions.CheckNonWhiteSpace(actualSource, nameof(actualSource));
     this.actualTestResults       = Preconditions.CheckNotNull(actualTestResults, nameof(actualTestResults));
     this.testResultComparer      = Preconditions.CheckNotNull(testResultComparer, nameof(testResultComparer));
     this.resultType              = Preconditions.CheckNonWhiteSpace(testOperationResultType, nameof(testOperationResultType));
     this.unmatchedResultsMaxSize = Preconditions.CheckRange <ushort>(unmatchedResultsMaxSize, 1);
 }