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