11 references to TestCompilation
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (10)
IntegrationTests\CodeGenerationIntegrationTest.cs (1)
19
private static readonly CSharpCompilation DefaultBaseCompilation =
TestCompilation
.Create().WithAssemblyName("AppCode");
IsViewComponentTest.cs (1)
26
Compilation =
TestCompilation
.Create(assembly);
ViewComponentTagHelperDescriptorFactoryTest.cs (6)
14
private static readonly Compilation _compilation =
TestCompilation
.Create(syntaxTrees: [CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(AdditionalCode, System.Text.Encoding.UTF8))], references: []);
24
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__StringParameterViewComponentTagHelper",
TestCompilation
.AssemblyName)
59
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__VariousParameterViewComponentTagHelper",
TestCompilation
.AssemblyName)
104
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__GenericParameterViewComponentTagHelper",
TestCompilation
.AssemblyName)
141
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__SyncDerivedViewComponentTagHelper",
TestCompilation
.AssemblyName)
180
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__AsyncDerivedViewComponentTagHelper",
TestCompilation
.AssemblyName)
ViewComponentTagHelperProducerTest.cs (2)
25
var compilation =
TestCompilation
.Create().AddSyntaxTrees(CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(code, System.Text.Encoding.UTF8)));
35
var expectedDescriptor = TagHelperDescriptorBuilder.CreateViewComponent("__Generated__StringParameterViewComponentTagHelper",
TestCompilation
.AssemblyName)
Microsoft.CodeAnalysis.Razor.UnitTests (1)
BaseTagHelperProducerTest.cs (1)
32
BaseCompilation =
TestCompilation
.Create(