Пример #1
0
 internal static AssertionConfiguration GetConfiguration(this Timings timings)
 {
     return(new AssertionConfiguration
     {
         Timeout = timings?.Timeout ?? 5000,
         Interval = timings?.Timeout ?? 100,
         ExceptionMatcher = ExceptionMatcher
     });
 }
Пример #2
0
 internal static AssertionConfiguration GetConfiguration(this Timings timings)
 {
     return(new AssertionConfiguration
     {
         Timeout = timings?.Timeout ?? Timings.DefaultTimeout,
         Interval = timings?.Interval ?? Timings.DefaultInterval,
         ExceptionMatcher = ExceptionMatcher
     });
 }
Пример #3
0
 internal static IAssertionResult <T, TSource> That <T, TSource>(this IValueProvider <T, TSource> provider, Action <T> assertion, Timings timings)
 {
     return(provider.Assert(assertion, timings.GetConfiguration()));
 }