Esempio n. 1
0
        public void GetNeigboursCountTest(int x, int y, int expectedCount)
        {
            var universe = new Universe(0, 0, 128, 128, Oscillators.GetBlinkerAt(1, 1));

            var count = universe.GetNeighborCount(x, y);

            Assert.AreEqual(expectedCount, count);
        }