예제 #1
0
        public void DoubleDispose()
        {
            var d = new SharedList <string>(LockingStrategy);

            d.Dispose();
            d.Dispose();
        }
예제 #2
0
        public void MethodsThrowAfterDisposed(Action <SharedList <string> > methodCall)
        {
            var d = new SharedList <string>(LockingStrategy);

            d.Dispose();
            methodCall.Invoke(d);
        }
예제 #3
0
        public void MethodsThrowAfterDisposed(Action <SharedList <string> > methodCall)
        {
            var d = new SharedList <string>(this.LockingStrategy);

            d.Dispose();
            Assert.Throws <ObjectDisposedException>(() => methodCall.Invoke(d));
        }