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); }
public void When_FindStartFloorFaceEmptyComponent_ExpectThrowEmptyListException_Helper() { Component c = new Component(); ComponentGraphGenerator.FindStartFloorFace(c, 1); }