Пример #1
0
 public void NumberOfReturnedPositionsMatchesRequest()
 {
     Assert.AreEqual(7, FixedHandicapPositions.GetHandicapStonePositions(new GameBoardSize(19), 7).Count());
 }
Пример #2
0
 public void ThirdPositionOn9BoardMatches()
 {
     Assert.AreEqual(new Position(6, 2),
                     FixedHandicapPositions.GetHandicapStonePositions(new GameBoardSize(9), 3).Last());
 }
Пример #3
0
 public void RequestingPositionsForNonSquareBoardThrows()
 {
     FixedHandicapPositions.GetHandicapStonePositions(new GameBoardSize(9, 10), 6);
 }
Пример #4
0
 public void RequestingPositionsForUnsupportedBoardSizeThrows()
 {
     FixedHandicapPositions.GetHandicapStonePositions(new GameBoardSize(8), 6);
 }
Пример #5
0
 public void RequestingTooManyPositionsFor19Throws()
 {
     FixedHandicapPositions.GetHandicapStonePositions(new GameBoardSize(19), 10);
 }