Beispiel #1
0
    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);
    }
Beispiel #2
0
    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);
    }