11 references to DocumentKind
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (11)
1605public async Task HasChanges_Documents(DocumentKind documentKind) 1619case DocumentKind.Source: 1623case DocumentKind.Additional: 1627case DocumentKind.AnalyzerConfig: 1665DocumentKind.Source => solution.AddDocument(documentId, "X", CreateText("xxx"), filePath: pathX), 1666DocumentKind.Additional => solution.AddAdditionalDocument(documentId, "X", CreateText("xxx"), filePath: pathX), 1667DocumentKind.AnalyzerConfig => solution.AddAnalyzerConfigDocument(documentId, "X", GetAnalyzerConfigText([("x", "1")]), filePath: pathX), 1685AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id)); 1698DocumentKind.Source => solution.WithDocumentText(documentId, CreateText("xxx")), 1699DocumentKind.Additional => solution.WithAdditionalDocumentText(documentId, CreateText("xxx")), 1700DocumentKind.AnalyzerConfig => solution.WithAnalyzerConfigDocumentText(documentId, GetAnalyzerConfigText([("x", "1")])),