From e60ddfdcb1c9a5b05425b6e86527f9177f09e160 Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Fri, 23 Oct 2026 19:11:45 +0500 Subject: [PATCH] Fix choice option lookup in Barcgal test --- server/tests/Vanguard.Rules.Tests/GameEngineTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/tests/Vanguard.Rules.Tests/GameEngineTests.cs b/server/tests/Vanguard.Rules.Tests/GameEngineTests.cs index 41ab589..b95efe6 100644 --- a/server/tests/Vanguard.Rules.Tests/GameEngineTests.cs +++ b/server/tests/Vanguard.Rules.Tests/GameEngineTests.cs @@ -864,15 +864,17 @@ public class GameEngineTests "круг", StringComparison.OrdinalIgnoreCase) < 0) { var cardIndex = engine.State.PendingChoice.Options + .ToList() .FindIndex(option => option.Label.Contains("Flogal")); - Assert.GreaterOrEqual(cardIndex, 0); + Assert.True(cardIndex >= 0); Assert.True(engine.Execute(new ChooseCommand(cardIndex)).Accepted); } Assert.NotNull(engine.State.PendingChoice); var circleIndex = engine.State.PendingChoice!.Options + .ToList() .FindIndex(option => option.Slot == 2); - Assert.GreaterOrEqual(circleIndex, 0); + Assert.True(circleIndex >= 0); Assert.True(engine.Execute(new ChooseCommand(circleIndex)).Accepted); Assert.Equal(