public void Should_Not_Throw_Exception_If_Complete_Called() { using (var uow = new InnerUnitOfWorkCompleteHandle()) { uow.Complete(); } }
public void Should_Not_Override_Exception_If_Exception_Is_Thrown_By_User() { Assert.Throws<Exception>( new Action(() => { using (var uow = new InnerUnitOfWorkCompleteHandle()) { throw new Exception("My inner exception!"); uow.Complete(); } })).Message.ShouldBe("My inner exception!"); }