Update combat tests for equal-power hits
CI / test (push) Successful in 3m35s Details

This commit is contained in:
MpakobecEx 2026-10-22 20:50:35 +05:00
parent fdf88894e7
commit 60e61d6bf5
1 changed files with 4 additions and 3 deletions

View File

@ -395,15 +395,16 @@ public class GameEngineTests
} }
[Fact] [Fact]
public void Without_Boost_The_Same_Attack_Misses() public void Without_Boost_The_Same_Attack_Hits()
{ {
var engine = ReadyToBoost(); var engine = ReadyToBoost();
Assert.True(engine.Execute(new AttackCommand(3, -1)).Accepted); Assert.True(engine.Execute(new AttackCommand(3, -1)).Accepted);
Assert.True(engine.Execute(new PassGuardCommand()).Accepted); Assert.True(engine.Execute(new PassGuardCommand()).Accepted);
Assert.Empty(engine.State.Players[1].Damage); Assert.Single(engine.State.Players[1].Damage);
Assert.False(engine.State.Players[0].RearGuards[0]!.Rested); Assert.False(engine.State.Players[0].RearGuards[0]!.Rested);
Assert.Contains(engine.Events, e => e is BattleResolvedEvent { Hit: true });
} }
[Fact] [Fact]
@ -510,7 +511,7 @@ public class GameEngineTests
Assert.Null(defender.RearGuards[3]); // перехватчик покинул круг Assert.Null(defender.RearGuards[3]); // перехватчик покинул круг
Assert.Contains(defender.Drop, c => c.PrintingId == Gallatin); Assert.Contains(defender.Drop, c => c.PrintingId == Gallatin);
Assert.Contains(engine.Events, e => e is InterceptedEvent); Assert.Contains(engine.Events, e => e is InterceptedEvent);
Assert.Contains(engine.Events, e => e is BattleResolvedEvent { Hit: false }); Assert.Contains(engine.Events, e => e is BattleResolvedEvent { Hit: true });
} }
[Fact] [Fact]