Exemple #1
0
 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);
 }
Exemple #3
0
 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);
 }
Exemple #7
0
 public static void ShouldNotThrow(this Action action, [InstantHandle] Func <string?>?customMessage)
 {
     Should.NotThrowInternal(action, customMessage);
 }
Exemple #8
0
 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);
 }