public void DoubleDispose() { var d = new SharedList <string>(LockingStrategy); d.Dispose(); d.Dispose(); }
public void MethodsThrowAfterDisposed(Action <SharedList <string> > methodCall) { var d = new SharedList <string>(LockingStrategy); d.Dispose(); methodCall.Invoke(d); }
public void MethodsThrowAfterDisposed(Action <SharedList <string> > methodCall) { var d = new SharedList <string>(this.LockingStrategy); d.Dispose(); Assert.Throws <ObjectDisposedException>(() => methodCall.Invoke(d)); }