public void DoesNotThrowWhenDisposingTwice() { var mkw = new ModifierKeysWatcher(new NativeMethodsMock()); #pragma warning disable IDISP016, IDISP017 mkw.Dispose(); mkw.Dispose(); #pragma warning restore IDISP016, IDISP017 }
public void Dispose() { if (_disposed) { return; } Stop(); _journalWatcher.Dispose(); _statusWatcher.Dispose(); _bindingsWatcher.Dispose(); _graphicsConfig.Dispose(); _modifierKeysWatcher.Dispose(); _gameProcessWatcher.Dispose(); _disposed = true; }