Ejemplo n.º 1
0
 /// <summary>Throws an <c>AssertFailedException</c> exception if <c>action</c> throws an exception.</summary>
 public static async Task DoesNotThrowAsync(Func <Task> action, string message = "") =>
 await ExceptionAssertTException.AdapterAsync(action, message, ExceptionAssertTException.DoesNotThrowAsync, m => new AssertFailedException(m));
Ejemplo n.º 2
0
 /// <summary>Throws an <c>AssertFailedException</c> exception if <c>action</c> throws an exception.</summary>
 public static void DoesNotThrow(Action action, string message = "") =>
 ExceptionAssertTException.Adapter(action, message, ExceptionAssertTException.DoesNotThrow, m => new AssertFailedException(m));