Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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 async Task TestA()

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,
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 static IEnumerable<int> GetData()

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,
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,7 +32,7 @@

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()

Check failure on line 35 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs#L35

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs(35,63): error CS1624: (NETCORE_ENGINEERING_TELEMETRY=Build) The body of 'AssemblyCleanupTests.TestAssetFixture.GetAssetsToGenerate()' cannot be an iterator block because '(string ID, string Name, string Code)' is not an iterator interface type

Check failure on line 35 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Release)

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs#L35

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs(35,63): error CS1624: (NETCORE_ENGINEERING_TELEMETRY=Build) The body of 'AssemblyCleanupTests.TestAssetFixture.GetAssetsToGenerate()' cannot be an iterator block because '(string ID, string Name, string Code)' is not an iterator interface type

Check failure on line 35 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs#L35

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/AssemblyCleanupTests.cs(35,63): error CS1624: (NETCORE_ENGINEERING_TELEMETRY=Build) The body of 'AssemblyCleanupTests.TestAssetFixture.GetAssetsToGenerate()' cannot be an iterator block because '(string ID, string Name, string Code)' is not an iterator interface type
{
yield return (ProjectName, ProjectName,
SourceCode
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,7 +86,7 @@ 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,
SourceCode
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,7 +57,7 @@

public string ProjectPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()

Check failure on line 60 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/DynamicDataMethodTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/DynamicDataMethodTests.cs#L60

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/DynamicDataMethodTests.cs(60,63): error CS1624: (NETCORE_ENGINEERING_TELEMETRY=Build) The body of 'DynamicDataMethodTests.TestAssetFixture.GetAssetsToGenerate()' cannot be an iterator block because '(string ID, string Name, string Code)' is not an iterator interface type
{
yield return (ProjectName, ProjectName,
SourceCode
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,7 +112,7 @@ 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,
SourceCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ 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,
SourceCode
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,7 +32,7 @@

public string TargetAssetPath => GetAssetPath(ProjectName);

public override IEnumerable<(string ID, string Name, string Code)> GetAssetsToGenerate()
public override (string ID, string Name, string Code) GetAssetsToGenerate()

Check failure on line 35 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LifecycleAttributesValueTaskThreadingTests.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LifecycleAttributesValueTaskThreadingTests.cs#L35

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/LifecycleAttributesValueTaskThreadingTests.cs(35,63): error CS1624: (NETCORE_ENGINEERING_TELEMETRY=Build) The body of 'LifecycleAttributesValueTaskThreadingTests.TestAssetFixture.GetAssetsToGenerate()' cannot be an iterator block because '(string ID, string Name, string Code)' is not an iterator interface type
{
yield return (ProjectName, ProjectName,
SourceCode
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static async Task UsingDataRowThatDoesNotRoundTripUsingDataContractJsonS

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 (DataRowAssetName, DataRowAssetName,
SourceCodeDataRow
Expand Down
Loading
Loading