public async Task UpdateLSPFileInfo_SolutionClosing_ClearsAllDocuments() { // Arrange await TestAccessor.GetDynamicFileInfoAsync(Project.FilePath, Document1.FilePath, CancellationToken.None).ConfigureAwait(false); await TestAccessor.GetDynamicFileInfoAsync(Project.FilePath, Document2.FilePath, CancellationToken.None).ConfigureAwait(false); Provider.Updated += (sender, documentFilePath) => throw new InvalidOperationException("Should not have been called!"); ProjectSnapshotManager.SolutionClosed(); ProjectSnapshotManager.DocumentClosed(Project.FilePath, Document1.FilePath, new EmptyTextLoader(string.Empty)); // Act & Assert Provider.UpdateLSPFileInfo(new Uri(Document2.FilePath), LSPDocumentContainer); Provider.UpdateLSPFileInfo(new Uri(Document1.FilePath), LSPDocumentContainer); }