Пример #1
0
        public void AliveBoardGeneratorTest()
        {
            const int width  = 5;
            const int height = 2;

            Board expected = new Board
            {
                width  = width,
                height = height,
                board  = new bool[height, width]
                {
                    { true, true, true, true, true },
                    { true, true, true, true, true }
                }
            };

            Assert.AreEqual(expected, BoardGenerator.CreateAliveStateBoard(width, height));
        }