public void Dispose() { GlobalParseCache.ParseTaskFinished -= ParseTaskFinished; Console.WriteLine("Deleting folder " + _subFolder); Directory.Delete(_subFolder, true); if (_parseFinishedSemaphore.WaitOne(0)) { Assert.That(GlobalParseCache.RemoveRoot(_subFolder)); } }
public void TearDown() { GlobalParseCache.RemoveRoot(Lsp4DUtil.DefaultWorkspaceRoot); if (Client != null) { Client.Dispose(); Assert.IsTrue(Client.Shutdown().Wait(5000)); } Client = null; //Lsp4DUtil.CleanDefaultWorkspace(); }