public void DecoratedDisposableResultIsAddedToDisposables()
 {
     // Fixture setup
     var disposable = new DisposableSpy();
     var builder = new DelegatingSpecimenBuilder { OnCreate = (r, c) => disposable };
     var sut = new DisposableTracker(builder);
     // Exercise system
     var dummyRequest = new object();
     var dummyContext = new DelegatingSpecimenContext();
     sut.Create(dummyRequest, dummyContext);
     // Verify outcome
     Assert.Contains(disposable, sut.Disposables);
     // Teardown
 }
        public void DecoratedDisposableResultIsAddedToDisposables()
        {
            // Fixture setup
            var disposable = new DisposableSpy();
            var builder    = new DelegatingSpecimenBuilder {
                OnCreate = (r, c) => disposable
            };
            var sut = new DisposableTracker(builder);
            // Exercise system
            var dummyRequest = new object();
            var dummyContext = new DelegatingSpecimenContext();

            sut.Create(dummyRequest, dummyContext);
            // Verify outcome
            Assert.Contains(disposable, sut.Disposables);
            // Teardown
        }