42 references to TestTargetFramework
Aspire.Workload.Tests (42)
NewUpAndBuildStandaloneTemplateTests.cs (1)
14
public async Task CanNewAndBuild(string templateName, TestSdk sdk,
TestTargetFramework
tfm, TestTemplatesInstall templates, string? error)
NewUpAndBuildSupportProjectTemplatesTests.cs (1)
17
public async Task CanNewAndBuild(string templateName, TestSdk sdk,
TestTargetFramework
tfm, TestTemplatesInstall templates, string? error)
StarterTemplateFixture_PreviousTFM.cs (1)
11
: base(diagnosticMessageSink, "aspire-starter", tfm:
TestTargetFramework
.Previous)
StarterTemplateWithRedisCacheFixture_PreviousTFM.cs (1)
11
: base(diagnosticMessageSink, "aspire-starter", "--use-redis-cache", tfm:
TestTargetFramework
.Previous)
TemplateAppFixture.cs (3)
18
private readonly
TestTargetFramework
? _tfm;
25
public TemplateAppFixture(IMessageSink diagnosticMessageSink, string templateName, string? dotnetNewArgs = null, string config = "Debug",
TestTargetFramework
tfm =
TestTargetFramework
.Current)
tests\Shared\WorkloadTesting\AspireProject.cs (6)
21
public static string GetNuGetConfigPathFor(
TestTargetFramework
targetFramework) =>
29
public
TestTargetFramework
TargetFramework { get; init; }
41
public AspireProject(string id, string baseDir, ITestOutputHelper testOutput, BuildEnvironment buildEnv,
TestTargetFramework
? tfm = default)
56
protected static void InitProjectDir(string dir,
TestTargetFramework
tfm)
77
TestTargetFramework
? targetFramework = default,
85
var
tfmToUse = targetFramework ?? BuildEnvironment.DefaultTargetFramework;
tests\Shared\WorkloadTesting\BuildEnvironment.cs (9)
30
public static readonly
TestTargetFramework
DefaultTargetFramework = ComputeDefaultTargetFramework();
59
TestTargetFramework
.Previous => ForPreviousSdkOnly,
63
TestTargetFramework
.Current => ForCurrentSdkAndPreviousRuntime,
265
private static
TestTargetFramework
ComputeDefaultTargetFramework()
268
null or "" or "net9.0" =>
TestTargetFramework
.Current,
269
"net8.0" =>
TestTargetFramework
.Previous,
284
public static string ToTFMString(this
TestTargetFramework
tfm) => tfm switch
286
TestTargetFramework
.Previous => "net8.0",
287
TestTargetFramework
.Current => "net9.0",
WorkloadTestsBase.cs (20)
51
TestTargetFramework
? tfm = null,
344
public static TheoryData<string, TestSdk,
TestTargetFramework
, TestTemplatesInstall, string?> TestDataForNewAndBuildTemplateTests(string templateName) => new()
347
{ templateName, TestSdk.Previous,
TestTargetFramework
.Previous, TestTemplatesInstall.Net8, null },
348
{ templateName, TestSdk.Previous,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9, "'net8.0' is not a valid value for -f" },
349
{ templateName, TestSdk.Previous,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9AndNet8, null },
351
{ templateName, TestSdk.Previous,
TestTargetFramework
.Current, TestTemplatesInstall.Net8, "'net9.0' is not a valid value for -f" },
352
{ templateName, TestSdk.Previous,
TestTargetFramework
.Current, TestTemplatesInstall.Net9, "The current .NET SDK does not support targeting .NET 9.0" },
353
{ templateName, TestSdk.Previous,
TestTargetFramework
.Current, TestTemplatesInstall.Net9AndNet8, "The current .NET SDK does not support targeting .NET 9.0" },
356
{ templateName, TestSdk.Current,
TestTargetFramework
.Previous, TestTemplatesInstall.Net8, null },
357
{ templateName, TestSdk.Current,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9, "'net8.0' is not a valid value for -f" },
358
{ templateName, TestSdk.Current,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9AndNet8, null },
360
{ templateName, TestSdk.Current,
TestTargetFramework
.Current, TestTemplatesInstall.Net8, "'net9.0' is not a valid value for -f" },
361
{ templateName, TestSdk.Current,
TestTargetFramework
.Current, TestTemplatesInstall.Net9, null },
362
{ templateName, TestSdk.Current,
TestTargetFramework
.Current, TestTemplatesInstall.Net9AndNet8, null },
365
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Previous, TestTemplatesInstall.Net8, null },
366
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9, "'net8.0' is not a valid value for -f" },
367
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Previous, TestTemplatesInstall.Net9AndNet8, null },
369
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Current, TestTemplatesInstall.Net8, "'net9.0' is not a valid value for -f" },
370
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Current, TestTemplatesInstall.Net9, null },
371
{ templateName, TestSdk.CurrentSdkAndPreviousRuntime,
TestTargetFramework
.Current, TestTemplatesInstall.Net9AndNet8, null },