18 references to IsSourceGenerated
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
336if (document.IsSourceGenerated)
Workspaces\EditorTestHostDocument.cs (1)
167if (testDocument.IsSourceGenerated)
Workspaces\EditorTestWorkspace.cs (4)
186Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 196Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 206Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 216Contract.ThrowIfFalse(testDocument.IsSourceGenerated);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticDataTests.cs (1)
220Assert.True(hostDocument.IsSourceGenerated);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (10)
Workspaces\TestHostDocument.cs (3)
39if (IsSourceGenerated && _id is null) 159if (!IsSourceGenerated) 204Contract.ThrowIfTrue(IsSourceGenerated, "We shouldn't be producing a DocumentInfo for a source generated document.");
Workspaces\TestHostProject`1.cs (1)
265documents: Documents.Where(d => !d.IsSourceGenerated).Select(d => d.ToDocumentInfo()),
Workspaces\TestWorkspace`1.cs (6)
471Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 481Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 491Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 501Contract.ThrowIfTrue(testDocument.IsSourceGenerated); 511Contract.ThrowIfFalse(testDocument.IsSourceGenerated); 693if (!document.IsSourceGenerated)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
103if (document.IsSourceGenerated)