27 references to TestTemplatesInstall
Aspire.Workload.Tests (27)
NewUpAndBuildStandaloneTemplateTests.cs (4)
14
public async Task CanNewAndBuild(string templateName, TestSdk sdk, TestTargetFramework tfm,
TestTemplatesInstall
templates, string? error)
28
TestTemplatesInstall
.Net8 => TemplatesCustomHive.TemplatesHive,
29
TestTemplatesInstall
.Net9 => TemplatesCustomHive.TemplatesHive,
30
TestTemplatesInstall
.Net9AndNet8 => TemplatesCustomHive.TemplatesHive,
NewUpAndBuildSupportProjectTemplatesTests.cs (4)
17
public async Task CanNewAndBuild(string templateName, TestSdk sdk, TestTargetFramework tfm,
TestTemplatesInstall
templates, string? error)
32
TestTemplatesInstall
.Net8 => TemplatesCustomHive.TemplatesHive,
33
TestTemplatesInstall
.Net9 => TemplatesCustomHive.TemplatesHive,
34
TestTemplatesInstall
.Net9AndNet8 => TemplatesCustomHive.TemplatesHive,
WorkloadTestsBase.cs (19)
350
public static TheoryData<string, TestSdk, TestTargetFramework,
TestTemplatesInstall
, string?> TestDataForNewAndBuildTemplateTests(string templateName) => new()
353
{ templateName, TestSdk.Previous, TestTargetFramework.Previous,
TestTemplatesInstall
.Net8, null },
354
{ templateName, TestSdk.Previous, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9, "'net8.0' is not a valid value for -f" },
355
{ templateName, TestSdk.Previous, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9AndNet8, null },
357
{ templateName, TestSdk.Previous, TestTargetFramework.Current,
TestTemplatesInstall
.Net8, "'net9.0' is not a valid value for -f" },
358
{ templateName, TestSdk.Previous, TestTargetFramework.Current,
TestTemplatesInstall
.Net9, "The current .NET SDK does not support targeting .NET 9.0" },
359
{ templateName, TestSdk.Previous, TestTargetFramework.Current,
TestTemplatesInstall
.Net9AndNet8, "The current .NET SDK does not support targeting .NET 9.0" },
362
{ templateName, TestSdk.Current, TestTargetFramework.Previous,
TestTemplatesInstall
.Net8, null },
363
{ templateName, TestSdk.Current, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9, "'net8.0' is not a valid value for -f" },
364
{ templateName, TestSdk.Current, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9AndNet8, null },
366
{ templateName, TestSdk.Current, TestTargetFramework.Current,
TestTemplatesInstall
.Net8, "'net9.0' is not a valid value for -f" },
367
{ templateName, TestSdk.Current, TestTargetFramework.Current,
TestTemplatesInstall
.Net9, null },
368
{ templateName, TestSdk.Current, TestTargetFramework.Current,
TestTemplatesInstall
.Net9AndNet8, null },
371
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Previous,
TestTemplatesInstall
.Net8, null },
372
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9, "'net8.0' is not a valid value for -f" },
373
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Previous,
TestTemplatesInstall
.Net9AndNet8, null },
375
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Current,
TestTemplatesInstall
.Net8, "'net9.0' is not a valid value for -f" },
376
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Current,
TestTemplatesInstall
.Net9, null },
377
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime, TestTargetFramework.Current,
TestTemplatesInstall
.Net9AndNet8, null },