Пример #1
0
        public void PointHasTwoOrThreeNighbours_GivenPointsAround1And1_ShouldReturnTrue()
        {
            //---------------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 hasTwoOrThreeNeighbours = _game.PointHasTwoOrThreeNighbours(1, 1);

            //---------------Test Result -----------------------
            Assert.IsTrue(hasTwoOrThreeNeighbours);
        }