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); }
public void MethodsThrowAfterDisposed(Action <SharedDictionary <string, string> > methodCall) { var d = new SharedDictionary <string, string>(this.LockingStrategy); d.Dispose(); Assert.Throws <ObjectDisposedException>(() => methodCall.Invoke(d)); }