@@ -37,6 +37,8 @@ public bool IsCurrentTestApplicationModuleExecutable
3737 get
3838 {
3939 string ? processPath = GetProcessPath ( _environment , _process , true ) ;
40+ // TODO: Looks like this will always be true.
41+ // Investigate if we have a bug here.
4042 return processPath != ".dll" ;
4143 }
4244 }
@@ -113,16 +115,13 @@ public ExecutableInfo GetCurrentExecutableInfo()
113115 {
114116 bool isDotnetMuxer = IsCurrentTestApplicationHostDotnetMuxer ;
115117 bool isAppHost = IsAppHostOrSingleFileOrNativeAot ;
116- bool isMonoMuxer = IsCurrentTestApplicationHostMonoMuxer ;
117118 string [ ] commandLineArguments = _environment . GetCommandLineArgs ( ) ;
118- IEnumerable < string > arguments = ( isAppHost , isDotnetMuxer , isMonoMuxer ) switch
119+ IEnumerable < string > arguments = ( isAppHost , isDotnetMuxer ) switch
119120 {
120121 // When executable
121- ( true , _ , _ ) => commandLineArguments . Skip ( 1 ) ,
122+ ( true , _ ) => commandLineArguments . Skip ( 1 ) ,
122123 // When dotnet
123- ( _, true , _) => MuxerExec . Concat ( commandLineArguments ) ,
124- // When mono
125- ( _, _, true ) => commandLineArguments ,
124+ ( _, true ) => MuxerExec . Concat ( commandLineArguments ) ,
126125 // Otherwise
127126 _ => commandLineArguments ,
128127 } ;
0 commit comments