Update combat tests for equal-power hits
CI / test (push) Successful in 3m35s
Details
CI / test (push) Successful in 3m35s
Details
This commit is contained in:
parent
fdf88894e7
commit
60e61d6bf5
|
|
@ -395,15 +395,16 @@ public class GameEngineTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void Without_Boost_The_Same_Attack_Misses()
|
||||
public void Without_Boost_The_Same_Attack_Hits()
|
||||
{
|
||||
var engine = ReadyToBoost();
|
||||
|
||||
Assert.True(engine.Execute(new AttackCommand(3, -1)).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.Contains(engine.Events, e => e is BattleResolvedEvent { Hit: true });
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -510,7 +511,7 @@ public class GameEngineTests
|
|||
Assert.Null(defender.RearGuards[3]); // перехватчик покинул круг
|
||||
Assert.Contains(defender.Drop, c => c.PrintingId == Gallatin);
|
||||
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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue