Example #1
0
    public void CurrentProcessMonitor_ShouldNotThrow_OnMultipleDisposeCalls()
    {
        var monitor = new CurrentProcessMonitor();

        monitor.Dispose();
        var dispose = () => monitor.Dispose();

        dispose.Should().NotThrow();
    }
Example #2
0
 public void Dispose()
 {
     subscription?.Dispose();
     monitor?.Dispose();
 }