Esempio n. 1
0
        public void CreateInitialBoard__CheckPointCount()
        {
            // Arrange
            var boardService = new BoardService();

            // Act
            var initialBoard = boardService.CreateInitialBoard();
            var points       = initialBoard.Item1;

            // Assert
            Assert.AreEqual(24, points.Count);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void CreateInitialBoard__CheckPossibleMillCount()
        {
            // Arrange
            var boardService = new BoardService();

            // Act
            var initialBoard = boardService.CreateInitialBoard();
            var mills        = initialBoard.Item2;

            // Assert
            Assert.AreEqual(16, mills.Count);
        }