public void Should_throw_when_timeout_exceeded() { Should.Throw<TransactionAbortedException>(() => { using (var tx = new TransactionScopeFactory().New(new TransactionScopeOptions(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted, Timeout = TimeSpan.FromMilliseconds(100) }))) { Thread.Sleep(TimeSpan.FromMilliseconds(1000)); tx.Complete(); } }); }