Пример #1
0
 public static TestRunResult TimedOut(ITestListDescription ranTests,
                                      ITestListDescription failedTest,
                                      ITestListDescription timedOutTests,
                                      string message)
 {
     return(new TestRunResult(ranTests, failedTest, timedOutTests, message)
     {
         SessionTimedOut = true
     });
 }
Пример #2
0
 public TestRunResult(ITestListDescription ranTests,
                      ITestListDescription failedTests,
                      ITestListDescription timedOutTest,
                      string message)
 {
     RanTests      = ranTests;
     FailingTests  = failedTests;
     TimedOutTests = timedOutTest;
     ResultMessage = message;
 }
Пример #3
0
 public void AddTests(ITestListDescription otherFailingTests)
 {
     if (otherFailingTests.IsEmpty)
     {
         return;
     }
     foreach (var testDescription in otherFailingTests.Tests)
     {
         Add(testDescription);
     }
 }
Пример #4
0
 static TestListDescription()
 {
     EveryTests     = new TestListDescription(new[] { TestDescription.AllTests() });
     NoTestInstance = new TestListDescription(null);
 }
Пример #5
0
 public bool ContainsAny(ITestListDescription other)
 {
     return(Tests?.Any(other.Contains) == true);
 }