public void DoubleDispose()
        {
            var d = new SharedDictionary <string, string>(LockingStrategy);

            d.Dispose();
            d.Dispose();
        }
        public void MethodsThrowAfterDisposed(Action <SharedDictionary <string, string> > methodCall)
        {
            var d = new SharedDictionary <string, string>(LockingStrategy);

            d.Dispose();
            methodCall.Invoke(d);
        }
Esempio n. 3
0
        public void MethodsThrowAfterDisposed(Action <SharedDictionary <string, string> > methodCall)
        {
            var d = new SharedDictionary <string, string>(this.LockingStrategy);

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