public static T ShouldNotThrow <T>(this Func <Task <T> > action, TimeSpan timeoutAfter, [InstantHandle] Func <string> customMessage) { return(Should.NotThrowInternal(action, timeoutAfter, customMessage)); }
/*** ShouldNotThrow(Func<Task>) ***/ public static void ShouldNotThrow(this Func <Task> action, string?customMessage = null) { Should.NotThrowInternal(action, ShouldlyConfiguration.DefaultTaskTimeout, customMessage); }
public static void ShouldNotThrow(this Func <Task> action, TimeSpan timeoutAfter, [InstantHandle] Func <string> customMessage) { Should.NotThrowInternal(action, timeoutAfter, customMessage); }
/*** ShouldNotThrow(Func<Task<T>>) ***/ public static T ShouldNotThrow <T>(this Func <Task <T> > action, string?customMessage = null) { return(Should.NotThrowInternal(action, ShouldlyConfiguration.DefaultTaskTimeout, customMessage)); }
/*** ShouldNotThrow(Func<Task<T>>, TimeSpan) ***/ public static T ShouldNotThrow <T>(this Func <Task <T> > action, TimeSpan timeoutAfter, string?customMessage = null) { return(Should.NotThrowInternal(action, timeoutAfter, customMessage)); }
/*** ShouldNotThrow(Func<Task>, TimeSpan) ***/ public static void ShouldNotThrow(this Func <Task> action, TimeSpan timeoutAfter, string?customMessage = null) { Should.NotThrowInternal(action, timeoutAfter, customMessage); }
public static void ShouldNotThrow(this Action action, [InstantHandle] Func <string?>?customMessage) { Should.NotThrowInternal(action, customMessage); }
public static T ShouldNotThrow <T>(this Func <T> action, [InstantHandle] Func <string?>?customMessage) { return(Should.NotThrowInternal(action, customMessage)); }
/*** ShouldNotThrow(Func<T>) ***/ public static T ShouldNotThrow <T>(this Func <T> action, string?customMessage = null) { return(Should.NotThrowInternal(action, customMessage)); }
/*** ShouldNotThrow(Action) ***/ public static void ShouldNotThrow(this Action action, string?customMessage = null) { Should.NotThrowInternal(action, customMessage); }