Skip to content

Commit f4c76be

Browse files
committed
Refactor sutName to SutName for naming consistency
Renamed the constant sutName to SutName in HelpCommandTests to follow .NET PascalCase naming conventions for constants. Updated all references to use the new name for consistency.
1 parent 1081a93 commit f4c76be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class HelpCommandTests
2222
private const string PropsFileName = "MTPTest.props";
2323
private string[] _testProjectTfms = [];
2424
private static readonly string s_projectName = "coverlet.MTP.validation.tests";
25-
private const string sutName = "BasicTestProject";
25+
private const string SutName = "BasicTestProject";
2626
private readonly string _projectOutputPath = TestUtils.GetTestBinaryPath(s_projectName);
2727
private readonly string _testProjectPath;
2828
private readonly string _repoRoot ;
@@ -84,7 +84,7 @@ private void CreateDeterministicTestPropsFile()
8484
new XElement("PropertyGroup",
8585
new XElement("coverletMTPVersion", GetPackageVersion("*MTP*.nupkg")))));
8686

87-
string csprojPath = Path.Combine(_testProjectPath, sutName + ".csproj");
87+
string csprojPath = Path.Combine(_testProjectPath, SutName + ".csproj");
8888
XElement csproj = XElement.Load(csprojPath)!;
8989

9090
// Use only the first top-level PropertyGroup in the project file
@@ -480,7 +480,7 @@ private void VerifyCoverletMtpDeployed()
480480

481481
private string GetSUTBinaryPath()
482482
{
483-
string binTestProjectPath = Path.Combine(_repoRoot, "artifacts", "bin", sutName);
483+
string binTestProjectPath = Path.Combine(_repoRoot, "artifacts", "bin", SutName);
484484
string binPath = Path.Combine(binTestProjectPath, _buildConfiguration);
485485
return binPath;
486486
}
@@ -538,7 +538,7 @@ private async Task<int> BuildProject(string projectPath)
538538

539539
private async Task<TestResult> RunTestsWithHelp()
540540
{
541-
string testExecutable = Path.Combine(GetSUTBinaryPath(), sutName + ".dll");
541+
string testExecutable = Path.Combine(GetSUTBinaryPath(), SutName + ".dll");
542542

543543
var processStartInfo = new ProcessStartInfo
544544
{
@@ -569,7 +569,7 @@ private async Task<TestResult> RunTestsWithHelp()
569569

570570
private async Task<TestResult> RunTestsWithInfo()
571571
{
572-
string testExecutable = Path.Combine(GetSUTBinaryPath(), sutName + ".dll");
572+
string testExecutable = Path.Combine(GetSUTBinaryPath(), SutName + ".dll");
573573

574574
var processStartInfo = new ProcessStartInfo
575575
{

0 commit comments

Comments
 (0)