public void ShouldPass() { AssertAction.Throws <Exception>(() => { throw new Exception(); }); }
public void ShouldFail() { AssertAction.Throws <ArgumentException>(() => { throw new Exception(); }); }
public void ShouldFailByPredicate() { AssertAction.Throws <Exception>(() => { throw new Exception(); }, e => e.InnerException != null); }
public void ShouldPassWithPredicate() { var message = "message"; AssertAction.Throws <Exception>(() => { throw new Exception(message); }, e => e.Message == message); }