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