Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,9 @@

public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
// We expect the same semantic for Linux, the test setup is not cross and we're using specific
// Windows API because this gesture is not easy xplat.
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
yield break;
}

yield return (AssetName, AssetName,
return (AssetName, AssetName,

Check failure on line 146 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AbortionTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Debug)

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AbortionTests.cs#L146

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AbortionTests.cs(146,13): error IDE0022: (NETCORE_ENGINEERING_TELEMETRY=Build) Use expression body for method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0022)
Sources
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MicrosoftTestingPlatformVersion$", MicrosoftTestingPlatformVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@

public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,

Check failure on line 179 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AppDomainTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Debug)

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AppDomainTests.cs#L179

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AppDomainTests.cs(179,13): error IDE0022: (NETCORE_ENGINEERING_TELEMETRY=Build) Use expression body for method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0022)
SingleTestSourceCode
.PatchCodeWithReplace("$TargetFramework$", TargetFrameworks.NetFramework[0])
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public void GetWebResourceRootReturnsOkStatusCode()

public string AspireProjectPath => GetAssetPath(AspireProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AspireProjectName, AspireProjectName,
return (AspireProjectName, AspireProjectName,
AspireSourceCode
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
{
public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.NetFramework)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -30,9 +30,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPathWithMSTestRunSettings => GetAssetPath(ProjectNameWithMSTestRunSettings);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectNameWithMSTestRunSettings, ProjectNameWithMSTestRunSettings,
return (ProjectNameWithMSTestRunSettings, ProjectNameWithMSTestRunSettings,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$ProjectName$", ProjectNameWithMSTestRunSettings)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -30,9 +30,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPathWithMSTestV2RunSettings => GetAssetPath(ProjectNameWithMSTestV2RunSettings);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectNameWithMSTestV2RunSettings, ProjectNameWithMSTestV2RunSettings,
return (ProjectNameWithMSTestV2RunSettings, ProjectNameWithMSTestV2RunSettings,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$ProjectName$", ProjectNameWithMSTestV2RunSettings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$ProjectName$", ProjectName)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -29,9 +29,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string DuplicateTestMethodProjectPath => GetAssetPath(DuplicateTestMethodProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (DuplicateTestMethodProjectName, DuplicateTestMethodProjectName,
return (DuplicateTestMethodProjectName, DuplicateTestMethodProjectName,
DuplicateTestMethodSourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public void TestMethod1()

public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,
Sources
.PatchTargetFrameworks(TargetFrameworks.NetFramework[0])
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -29,9 +29,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string DuplicateTestClassProjectPath => GetAssetPath(DuplicateTestClassProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (DuplicateTestClassProjectName, DuplicateTestClassProjectName,
return (DuplicateTestClassProjectName, DuplicateTestClassProjectName,
DuplicateTestClassSourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public void TestMethod1()

public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,
Sources
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ Cannot create an instance of T\[] because Type\.ContainsGenericParameters is tru

public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.NuGetGlobalPackagesFolder)
{
public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return ("GenericTestMethodTests", "GenericTestMethodTests",
return ("GenericTestMethodTests", "GenericTestMethodTests",
SourceGenericTestMethod
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
{
public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.NetCurrent)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -32,9 +32,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string TargetAssetPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$ParallelAttribute$", string.Empty)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -32,9 +32,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string TargetAssetPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.Net)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -32,9 +32,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string TargetAssetPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Testing.Platform.Acceptance.IntegrationTests;
Expand Down Expand Up @@ -33,9 +33,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string TargetAssetPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, AssemblyName,
return (ProjectName, AssemblyName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$ParallelAttribute$", "[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.MethodLevel)]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public async Task Test12()

public string TargetAssetPath => GetAssetPath(AssetName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (AssetName, AssetName,
return (AssetName, AssetName,
Sources
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MicrosoftTestingPlatformVersion$", MicrosoftTestingPlatformVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()
{
yield return (ProjectName, ProjectName,
return (ProjectName, ProjectName,
SourceCode
.PatchTargetFrameworks(TargetFrameworks.All)
.PatchCodeWithReplace("$MSTestVersion$", MSTestVersion));
Expand Down
Loading
Loading