Exemple #1
0
 //ncrunch: no coverage start
 private void WarnIfUnitTestTakesTooLong()
 {
     if (StackTraceExtensions.ContainsUnitTest() && TookLongerThan10Ms())
     {
         Debug.WriteLine("This unit test takes too long (" + testElapsedMs + "ms, max. 10ms is " +
                         "allowed), please add Category(\"Slow\") to run it nightly instead!");
     }
 }