From 4236dc9e8ee6783f248015ece99f1831e3db6ab9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 29 May 2026 15:43:47 +0000 Subject: [PATCH] refactor: use BuildMultipleAssemblyPath in TrxLogger acceptance test Replace manual assembly path quoting with the established BuildMultipleAssemblyPath helper method for clarity and consistency with other tests in the codebase. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../LoggerTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs index e504dbfb1a..f4a21fbebf 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs @@ -265,9 +265,7 @@ public void TrxLoggerShouldNotOverwriteWhenMultipleAssembliesUseSameLogFileName( // each should get a unique file (via iteration) instead of overwriting. SetTestEnvironment(_testEnvironment, runnerInfo); - var assembly1 = GetAssetFullPath("SimpleTestProject.dll"); - var assembly2 = GetAssetFullPath("SimpleTestProject2.dll"); - var assemblyPaths = $"{assembly1}\" \"{assembly2}"; + var assemblyPaths = BuildMultipleAssemblyPath("SimpleTestProject.dll", "SimpleTestProject2.dll"); var trxFileName = "SharedName.trx"; var arguments = PrepareArguments(assemblyPaths, null, string.Empty, FrameworkArgValue, runnerInfo.InIsolationValue, resultsDirectory: TempDirectory.Path); arguments = string.Concat(arguments, $" /logger:\"trx;LogFileName={trxFileName}\"");