public void Complete_throws_when_already_disposed()
 {
     var transactionScope = new TransactionScope();
     var sut = new TransactionScopeWrapper(transactionScope);
     sut.Dispose();
     TestDelegate test = sut.Complete;
     Assert.That(test, Throws.TypeOf<ObjectDisposedException>());
 }
        public void Dispose_sets_IsDisposed_to_true()
        {
            // Arrange.
            var transactionScope = new TransactionScope();
            var sut = new TransactionScopeWrapper(transactionScope);

            // Act.
            sut.Dispose();

            // Assert.
            Assert.That(sut.IsDisposed, Is.True);
        }