diff --git a/src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs b/src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs index ebd46b602a..69cc4b114e 100644 --- a/src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs +++ b/src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs @@ -37,6 +37,8 @@ public bool IsCurrentTestApplicationModuleExecutable get { string? processPath = GetProcessPath(_environment, _process, true); + // TODO: Looks like this will always be true. + // Investigate if we have a bug here. return processPath != ".dll"; } } @@ -113,16 +115,13 @@ public ExecutableInfo GetCurrentExecutableInfo() { bool isDotnetMuxer = IsCurrentTestApplicationHostDotnetMuxer; bool isAppHost = IsAppHostOrSingleFileOrNativeAot; - bool isMonoMuxer = IsCurrentTestApplicationHostMonoMuxer; string[] commandLineArguments = _environment.GetCommandLineArgs(); - IEnumerable arguments = (isAppHost, isDotnetMuxer, isMonoMuxer) switch + IEnumerable arguments = (isAppHost, isDotnetMuxer) switch { // When executable - (true, _, _) => commandLineArguments.Skip(1), + (true, _) => commandLineArguments.Skip(1), // When dotnet - (_, true, _) => MuxerExec.Concat(commandLineArguments), - // When mono - (_, _, true) => commandLineArguments, + (_, true) => MuxerExec.Concat(commandLineArguments), // Otherwise _ => commandLineArguments, };