public void AllowsAllAdjacentCells() { var initial = new InitialHiveBuilder(); initial += " ⬡ ⬡ "; initial += "⬡ ★ ⬡"; initial += " ⬡ ⬡ "; var expected = new ExpectedMovementBuilder(); expected += " ✔ ✔ "; expected += "✔ ★ ✔"; expected += " ✔ ✔ "; var move = new IsAdjacent(); move.Should().HaveMoves(initial, expected); }
public void AllowsOnlyCellsAdjacentToOrigin() { var initial = new InitialHiveBuilder(); initial += "⬡ ⬡ ⬡ ⬡ ⬡"; initial += " ⬡ ⬡ ⬡ ⬡ "; initial += "⬡ ⬡ ★ ⬡ ⬡"; initial += " ⬡ ⬡ ⬡ ⬡ "; initial += "⬡ ⬡ ⬡ ⬡ ⬡"; var expected = new ExpectedMovementBuilder(); expected += "⬡ ⬡ ⬡ ⬡ ⬡"; expected += " ⬡ ✔ ✔ ⬡ "; expected += "⬡ ✔ ★ ✔ ⬡"; expected += " ⬡ ✔ ✔ ⬡ "; expected += "⬡ ⬡ ⬡ ⬡ ⬡"; var move = new IsAdjacent(); move.Should().HaveMoves(initial, expected); }