public void ForceReset() { if (_watcher != null) { _watcher.EnableRaisingEvents = false; } try { Api.ResetCache(); } catch (Exception exc) { new ExtendedErrorView("[Versioning] Failed to reset definitions.", exc.ToString(), "Error") .ShowDialog(); #if DEBUG throw; #endif } }
public void TestResetCache() { var ex = Record.Exception(() => _api.ResetCache()); Assert.Null(ex); }