Skip to content

Commit

Permalink
Engine.Tests: Add state asserts to MultipleComplexAttackers
Browse files Browse the repository at this point in the history
  • Loading branch information
Fayti1703 committed Jan 4, 2025
1 parent b424aeb commit d62bce9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions BinaryMatrixEngine.Tests/FullTurnTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,38 @@ public void MultipleComplexAttackers() {

PlayerRole? victor = game.Tick();
Assert.AreEqual(null, victor);
Assert.AreEqual(36, game.TurnCounter);
Assert.AreEqual(new CardList(new[] { new Card(BREAK, DATA), new Card(SEVEN, CHOICE) }), game.board[L1].cards, Comparers.CardList);
Assert.AreEqual(new CardList(new[] { new Card(SEVEN, FORM), new Card(FIVE, KIN) }), game.board[L2].cards, Comparers.CardList);
Assert.AreEqual(new CardList(new[] { new Card(TWO, VOID), new Card(FIVE, KIN) { revealed = true } }), game.board[L3].cards, Comparers.CardList);

Assert.AreEqual(new CardList(), game.board[A1].cards, Comparers.CardList);
Assert.AreEqual(new CardList(), game.board[A2].cards, Comparers.CardList);
Assert.AreEqual(new CardList(), game.board[D1].cards, Comparers.CardList);
Assert.AreEqual(new CardList(), game.board[D2].cards, Comparers.CardList);

Assert.AreEqual(new CardList(new[] {
/* -- first combat -- */
/* attacker stack: */
new Card(EIGHT, KIN) { revealed = true },
new Card(EIGHT, FORM) { revealed = true },
new Card(BREAK, CHOICE) { revealed = true },
/* defender stack: */
new Card(FOUR, VOID) { revealed = true },

/* -- second combat -- */
/* trapped: */
new Card(FOUR, DATA) { revealed = true },
/* attacker stack: */
new Card(EIGHT, CHOICE) { revealed = true },
new Card(TRAP, CHAOS) { revealed = true },
new Card(BREAK, KIN) { revealed = true },
}), game.board[XA].cards, Comparers.CardList);

Assert.AreEqual(new CardList(new[] { new Card(TRAP, FORM) } ), a0.Hand, Comparers.CardList);
Assert.AreEqual(new CardList(new[] { new Card(TWO, CHAOS), new Card(TRAP, VOID), new Card(TWO, KIN) } ), a1.Hand, Comparers.CardList);
Assert.AreEqual(new CardList(new[] { new Card(THREE, CHOICE), new Card(THREE, KIN), new Card(WILD, VOID) } ), a2.Hand, Comparers.CardList);

Assert.AreEqual(new[] {
new TurnLog(35, new[] {
new ActionLog(
Expand Down

0 comments on commit d62bce9

Please sign in to comment.