public void CreateInitialBoard__CheckPointCount() { // Arrange var boardService = new BoardService(); // Act var initialBoard = boardService.CreateInitialBoard(); var points = initialBoard.Item1; // Assert Assert.AreEqual(24, points.Count); }
public void CreateInitialBoard__CheckNeighborCount(string x, int y, int expectedCount) { // Arrange var boardService = new BoardService(); // Act var initialBoard = boardService.CreateInitialBoard(); var points = initialBoard.Item1; // Assert Assert.AreEqual(expectedCount, points.Where(p => p.X == x && p.Y == y).First().Neighbors.Count); }
public void CreateInitialBoard__CheckPossibleMillCount() { // Arrange var boardService = new BoardService(); // Act var initialBoard = boardService.CreateInitialBoard(); var mills = initialBoard.Item2; // Assert Assert.AreEqual(16, mills.Count); }