Skip to content

Commit 8e8bdaf

Browse files
Perform case insensitive value compare (#62)
1 parent cdc9e26 commit 8e8bdaf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lua/neotest-vstest/dotnet_utils.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function dotnet_utils.get_proj_info(path)
210210
logger.debug("neotest-vstest: msbuild properties for " .. proj_file .. ":")
211211
logger.debug(properties)
212212

213-
local is_mtp_disabled = properties.DisableTestingPlatformServerCapability == "true"
213+
local is_mtp_disabled = string.lower(properties.DisableTestingPlatformServerCapability) == "true"
214214

215215
---@class DotnetProjectInfo
216216
local proj_data = {
@@ -219,8 +219,9 @@ function dotnet_utils.get_proj_info(path)
219219
dll_file = properties.TargetPath,
220220
proj_dir = properties.MSBuildProjectDirectory,
221221
last_discovered = files.get_path_last_modified(proj_file) or 0,
222-
is_test_project = properties.IsTestProject == "true",
223-
is_mtp_project = not is_mtp_disabled and properties.IsTestingPlatformApplication == "true",
222+
is_test_project = string.lower(properties.IsTestProject) == "true",
223+
is_mtp_project = not is_mtp_disabled
224+
and string.lower(properties.IsTestingPlatformApplication) == "true",
224225
}
225226

226227
setmetatable(proj_data, {

0 commit comments

Comments
 (0)