Skip to content

Commit 8222942

Browse files
authored
Cleanup dead code in CurrentTestApplicationModuleInfo (#7699)
2 parents a723db6 + aaddcdf commit 8222942

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,8 @@ public bool IsCurrentTestApplicationHostMonoMuxer
3232
}
3333
}
3434

35-
public bool IsCurrentTestApplicationModuleExecutable
36-
{
37-
get
38-
{
39-
string? processPath = GetProcessPath(_environment, _process, true);
40-
// TODO: Looks like this will always be true.
41-
// Investigate if we have a bug here.
42-
return processPath != ".dll";
43-
}
44-
}
45-
4635
public bool IsAppHostOrSingleFileOrNativeAot
47-
=> IsCurrentTestApplicationModuleExecutable
48-
&& !IsCurrentTestApplicationHostDotnetMuxer
49-
&& !IsCurrentTestApplicationHostMonoMuxer;
36+
=> !IsCurrentTestApplicationHostDotnetMuxer && !IsCurrentTestApplicationHostMonoMuxer;
5037

5138
public string GetCurrentTestApplicationFullPath()
5239
{

src/Platform/Microsoft.Testing.Platform/Services/ITestApplicationModuleInfo.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ internal interface ITestApplicationModuleInfo
77
{
88
bool IsCurrentTestApplicationHostDotnetMuxer { get; }
99

10-
bool IsCurrentTestApplicationModuleExecutable { get; }
11-
1210
bool IsAppHostOrSingleFileOrNativeAot { get; }
1311

1412
string GetCurrentTestApplicationFullPath();

0 commit comments

Comments
 (0)