public void Dispose_ThrowsOnNullInnerDisposeDelegate() { int disposedState = 0, busyCount = 0; DisposeAssistant.Dispose(new TestDisposable(), ref disposedState, ref busyCount, null); }
public void Dispose_ThrowsOnNullCaller() { int disposedState = 0, busyCount = 0; DisposeAssistant.Dispose(null, ref disposedState, ref busyCount, new Action <bool>((b) => System.Diagnostics.Trace.WriteLine(b.ToString()))); }