Skip to content

Commit f96f9c7

Browse files
committed
Refactor HelpCommandTests and clean up project file
Moved _projectOutputPath initialization out of the field declaration in HelpCommandTests.cs, likely to be handled in the constructor. Removed obsolete commented-out <RestoreSources> section from coverlet.MTP.validation.tests.csproj for improved clarity.
1 parent cc6f642 commit f96f9c7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/coverlet.MTP.validation.tests/HelpCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class HelpCommandTests
2323
private string[] _testProjectTfms = [];
2424
private static readonly string s_projectName = "coverlet.MTP.validation.tests";
2525
private const string SutName = "BasicTestProject";
26-
private readonly string _projectOutputPath = TestUtils.GetTestBinaryPath(s_projectName);
26+
private readonly string _projectOutputPath;
2727
private readonly string _testProjectPath;
2828
private readonly string _repoRoot ;
2929

test/coverlet.MTP.validation.tests/coverlet.MTP.validation.tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
1010
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
1111
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
12-
<!--
1312
<RestoreSources>
1413
https://api.nuget.org/v3/index.json;
1514
$(RepoRoot)artifacts/package/$(Configuration.ToLowerInvariant())
1615
</RestoreSources>
17-
-->
1816
<IsPackable>false</IsPackable>
1917
<IsTestingPlatformApplication>true</IsTestingPlatformApplication>
2018
<!-- replace the xUnit.net native command line experience with the Microsoft Testing Platform command line experience -->

0 commit comments

Comments
 (0)