test: consolidate capacity tests, add GameSystem edge cases, remove ShowcaseQueryTests

This commit is contained in:
2026-05-28 16:40:11 +03:00
parent b496a401fc
commit 5b6971fda5
3 changed files with 28 additions and 55 deletions
@@ -8,9 +8,12 @@ public sealed class GameSystemTests
[InlineData("Dnd5e", GameSystem.Dnd5e)]
[InlineData("D&D", GameSystem.Dnd5e)]
[InlineData("dnd5e", GameSystem.Dnd5e)]
[InlineData(" dnd5e ", GameSystem.Dnd5e)]
[InlineData("D&D 5e", GameSystem.Dnd5e)]
[InlineData("pathfinder", GameSystem.Pathfinder2e)]
[InlineData("call of cthulhu", GameSystem.CallOfCthulhu7e)]
[InlineData("shadow", GameSystem.Shadowdark)]
[InlineData("dark", GameSystem.Shadowdark)]
[InlineData("unknown xyz", GameSystem.Other)]
public void TryParseFuzzy_ShouldMapInputToExpectedSystem(string input, GameSystem expected)
{
@@ -52,6 +55,7 @@ public sealed class GameSystemTests
[InlineData(GameSystem.Other, "Другое")]
[InlineData(GameSystem.Pathfinder2e, "Pathfinder 2e")]
[InlineData(GameSystem.Shadowdark, "Shadowdark")]
[InlineData((GameSystem)999, "Другое")]
public void ToDisplayName_ShouldReturnExpectedName(GameSystem system, string expected)
{
var result = system.ToDisplayName();