Ejemplo n.º 1
0
        public void When_FindFloorFaceOfSimpleCube_Expect_FloorFace(Structure structure)
        {
            Component simpleCube = structure.components[0];

            int lowestVertex = ComponentGraphGenerator.FindLowestVertex(simpleCube);

            int faceIndex = ComponentGraphGenerator.FindStartFloorFace(simpleCube, lowestVertex);

            Assert.That(faceIndex == SimpleCubeBottomFace1 || faceIndex == SimpleCubeBottomFace2);
        }
Ejemplo n.º 2
0
        public void When_FindStartFloorFaceEmptyComponent_ExpectThrowEmptyListException_Helper()
        {
            Component c = new Component();

            ComponentGraphGenerator.FindStartFloorFace(c, 1);
        }