public void Fail_ShouldThrowInternalErrorException() { var expectations = Expectations.GetExceptionMessages(); foreach (var e in expectations) { Throws(() => { Assumes.Fail(e); }); } }
private static Exception CreateInternalErrorException(string message) { Exception exception = null; try { Assumes.Fail(message); } catch (Exception ex) { exception = ex; } Assert.IsNotNull(exception); return(exception); }