Esempio n. 1
0
        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
            }
        }
Esempio n. 2
0
        public void TestResetCache()
        {
            var ex = Record.Exception(() => _api.ResetCache());

            Assert.Null(ex);
        }