Пример #1
0
        public void TestGetSurroundingActiveCubes()
        {
            List <int[]> activeCubes = CubeSimulator.GetActiveCubes(this.testData);
            int          noOfActive  = CubeSimulator.GetSurroundingActive(activeCubes[0], activeCubes);

            Assert.AreEqual(1, noOfActive);
        }
Пример #2
0
        public void TestGetSurroundingInctiveCubes()
        {
            List <int[]> activeCubes   = CubeSimulator.GetActiveCubes(this.testData);
            List <int[]> inactiveCubes = CubeSimulator.GetSurroundingInactive(activeCubes);

            Assert.AreEqual(61, inactiveCubes.Count);
        }
Пример #3
0
        public void TestGetActiveInitialStates(int iCube, int[] expectedCoordinates)
        {
            List <int[]> activeCubes = CubeSimulator.GetActiveCubes(this.testData);

            Assert.AreEqual(5, activeCubes.Count);
            Assert.AreEqual(expectedCoordinates, activeCubes[iCube]);
        }