示例#1
0
        public void PointHasExactlyThreeNeighboursAndIsDead_Given1And1_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 hasThreeNeighboursAndIsDead = _game.PointHasThreeNeighboursAndIsDead(1, 1);

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