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

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

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