예제 #1
0
 public void AnalyzeTestRun(ITestGuids failedTests, ITestGuids resultRanTests, ITestGuids timedOutTests)
 {
     if (CoveringTests.ContainsAny(failedTests))
     {
         ResultStatus = MutantStatus.Killed;
     }
     else if (resultRanTests.IsEveryTest || (MustRunAgainstAllTests is not true && CoveringTests.IsIncluded(resultRanTests)))
     {
         ResultStatus = MutantStatus.Survived;
     }
예제 #2
0
 public static TestRunResult TimedOut(ITestGuids ranTests,
                                      ITestGuids failedTest,
                                      ITestGuids timedOutTests,
                                      string message,
                                      TimeSpan duration)
 {
     return(new TestRunResult(ranTests, failedTest, timedOutTests, message, duration)
     {
         SessionTimedOut = true
     });
 }
예제 #3
0
 public TestRunResult(ITestGuids ranTests,
                      ITestGuids failedTests,
                      ITestGuids timedOutTest,
                      string message,
                      TimeSpan timeSpan)
 {
     RanTests      = ranTests;
     FailingTests  = failedTests;
     TimedOutTests = timedOutTest;
     ResultMessage = message;
     Duration      = timeSpan;
 }
        public static ITestGuids MergeList(ITestGuids a, ITestGuids b)
        {
            if (a.GetGuids() == null)
            {
                return(b);
            }

            if (b.GetGuids() == null)
            {
                return(a);
            }

            return(new WrappedGuidsEnumeration(a.GetGuids().Union(b.GetGuids())));
        }
예제 #5
0
 public bool ContainsAny(ITestGuids other)
 {
     if (other.IsEmpty || IsEmpty)
     {
         return(false);
     }
     if (IsEveryTest)
     {
         return(true);
     }
     if (other.IsEveryTest)
     {
         return(true);
     }
     return(_testsGuid.Overlaps(other.GetGuids()));
 }
예제 #6
0
 public bool IsIncluded(ITestGuids test)
 {
     return(test.IsEveryTest || _testsGuid.IsSubsetOf(test.GetGuids()));
 }
예제 #7
0
 public TestsGuidList Merge(ITestGuids other)
 {
     return(new TestsGuidList(_testsGuid.Union(other.GetGuids())));
 }