Beispiel #1
0
        public void Returns_Empty_List_When_Get_From_Builds_Coordinates_From_Unknown_Forward_Data(bool hasMoved)
        {
            var movement = new ForwardOnlyMovement(BOARD_SIZE, hasMoved);

            var moves = movement.GetCoordinates(new BoardCoordinate(BOARD_SIZE, BOARD_SIZE));

            Assert.Empty(moves);
        }
Beispiel #2
0
        public void Get_From_Builds_Coordinates_From_Forward_Data(bool hasMoved, IEnumerable <BoardCoordinate> expected)
        {
            var movement = new ForwardOnlyMovement(BOARD_SIZE, hasMoved);

            var moves = movement.GetCoordinates(new BoardCoordinate(2, 2));

            Assert.Equal(expected, moves);
        }