Exemple #1
0
 public static T ThrowsException <T>(Func <object> action, string message) where T : Exception
 {
     return(AssertHelper.ThrowsException <T>(action, message, null));
 }
Exemple #2
0
 public static T ThrowsException <T>(Action action) where T : Exception
 {
     return(AssertHelper.ThrowsException <T>(action, string.Empty, null));
 }