public void CurrentProcessMonitor_ShouldNotThrow_OnMultipleDisposeCalls() { var monitor = new CurrentProcessMonitor(); monitor.Dispose(); var dispose = () => monitor.Dispose(); dispose.Should().NotThrow(); }
public void Dispose() { subscription?.Dispose(); monitor?.Dispose(); }