public void returns_false_for_y_less_than_zero()
 {
     var coordinate = new BoardCoordinate(1, -1);
     Assert.IsFalse(coordinate.IsCoordinateValidForBoardSize(8));
 }
示例#2
0
        public void Coordinate_Is_Not_Within_Board_Size(int x, int y, int boardSize)
        {
            var coordinate = new BoardCoordinate(x, y);

            Assert.False(coordinate.IsCoordinateValidForBoardSize(boardSize));
        }
示例#3
0
            public void Returns_False_For_Y_Less_Than_Zero()
            {
                var coordinate = new BoardCoordinate(-12, 2);

                Assert.IsFalse(coordinate.IsCoordinateValidForBoardSize(5));
            }
示例#4
0
            public void Returns_False_For_Y_Less_Than_Zero()
            {
                var coordinate = new BoardCoordinate(2, -12);

                Assert.IsFalse(coordinate.IsCoordinateValidForBoardSize(5));
            }