Beispiel #1
0
        public void Dispose_ThrowsOnNullInnerDisposeDelegate()
        {
            int disposedState = 0, busyCount = 0;

            DisposeAssistant.Dispose(new TestDisposable(), ref disposedState, ref busyCount, null);
        }
Beispiel #2
0
        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())));
        }