Exemple #1
0
        public void Returns_Empty_List_When_Get_From_Builds_Coordinates_From_Outside_Length()
        {
            var movement = new RadialDiagonalMovement(4);

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

            Assert.Empty(moves);
        }
Exemple #2
0
        public void Get_From_Builds_Coordinates_From_Length(int boardSize, IEnumerable <BoardCoordinate> expected)
        {
            var movement = new RadialDiagonalMovement(boardSize)
            {
                Distance = boardSize
            };

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

            Assert.Equal(expected, moves);
        }