/// <summary>
 /// Gets the count.
 /// </summary>
 /// <param name="specialHandling">The special handling.</param>
 /// <returns></returns>
 public int GetCount(TestRunFailureSpecialHandling specialHandling)
 {
     int v;
     if (!specialHandlingsEntryCount.TryGetValue(specialHandling, out v))
         return 0;
     return v;
 }
 private void AssertFailureHandling(TestRunFailureSpecialHandling specialHandling, 
     string expectedMessage, 
     MatchType expectedMessageType, 
     string expectedStackTrace,
     MatchType expectedStackTraceType,
     int expectedretryCount)
 {
     Assert.That(specialHandling.FailureMessage, Is.EqualTo(expectedMessage));
     Assert.That(specialHandling.FailureStackTrace, Is.EqualTo(expectedStackTrace));
     Assert.That(specialHandling.FailureMessageType, Is.EqualTo(expectedMessageType));
     Assert.That(specialHandling.FailureStackTraceType, Is.EqualTo(expectedStackTraceType));
     Assert.That(specialHandling.RetryCount, Is.EqualTo(expectedretryCount));
 }
 /// <summary>
 /// Gets the count and increase.
 /// </summary>
 /// <param name="specialHandling">The special handling.</param>
 /// <returns></returns>
 public int GetCountAndIncrease(TestRunFailureSpecialHandling specialHandling)
 {
     return specialHandlingsEntryCount.AddOrUpdate(specialHandling, 1, (handling, i) => ++i);
 }