예제 #1
0
        public void Dispose()
        {
            var list = new DisposableList<MyDisposable>();

            Assert.True(list.All(x => !x.IsDisposed));

            list.Dispose();

            Assert.True(list.All(x => x.IsDisposed));
        }