示例#1
0
        public void PointHasMoreThan3Neighbours_GivenPointsAround1And1_ShouldReturnFalse()
        {
            //---------------Set up test pack-------------------
            _game = new Game(10);
            _game.Toggle(0, 0);
            _game.Toggle(1, 0);
            _game.Toggle(2, 0);
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var hasMoreThanThreeNeighbours = _game.PointHasMoreThanThreeNeighbours(1, 1);

            //---------------Test Result -----------------------
            Assert.IsFalse(hasMoreThanThreeNeighbours);
        }