Add GetKey tests

This commit is contained in:
Matt Nadareski
2025-01-08 13:20:59 -05:00
parent e53d729471
commit 0e034a332b
6 changed files with 116 additions and 4 deletions

View File

@@ -364,9 +364,6 @@ namespace SabreTools.DatItems
}
key = $"{sourceString}{machineString}";
if (lower)
key = key.ToLowerInvariant();
break;
case ItemKey.MD5:
@@ -396,6 +393,8 @@ namespace SabreTools.DatItems
// Double and triple check the key for corner cases
key ??= string.Empty;
if (lower)
key = key.ToLowerInvariant();
return key;
}