Esempio n. 1
0
        public void TestGetSurroundingActiveCubes()
        {
            List <int[]> activeCubes = CubeSimulator.GetActiveCubes(this.testData);
            int          noOfActive  = CubeSimulator.GetSurroundingActive(activeCubes[0], activeCubes);

            Assert.AreEqual(1, noOfActive);
        }
Esempio n. 2
0
        public void TestGetSurroundingInctiveCubes()
        {
            List <int[]> activeCubes   = CubeSimulator.GetActiveCubes(this.testData);
            List <int[]> inactiveCubes = CubeSimulator.GetSurroundingInactive(activeCubes);

            Assert.AreEqual(61, inactiveCubes.Count);
        }
Esempio n. 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]);
        }