private IBoardRules CreateBoardWithMinesRules() { //Generate Mines var minesEverywhere = GenerateMines.GenerateMineLocation(64, 8, 8); return(new BoardMineSweeperRules(new Board(GenerateHorizontalArray.HorizontalChessArray(8), 8, minesEverywhere))); }
public void TwoMinesGeneratedOk() { var resultList = GenerateMines.GenerateMineLocation(2, 2, 2); Assert.AreEqual(2, resultList.Count); }
public void NumberOfMinesExceedsAvailableSquares() { Assert.Throws <ArgumentException>(() => GenerateMines.GenerateMineLocation(2, 1, 1)); }