public void GetVerticesInEvenFlowerType1QPLayer_Works(int numVerticesInCenterPolygon, int layerIndex, int firstVertex, params int[] expectedVertices) { var actualVertices = UsefulQPs.GetVerticesInEvenFlowerType1QPLayer(numVerticesInCenterPolygon, layerIndex, firstVertex); Assert.That(actualVertices, Is.EqualTo(expectedVertices)); }
public void GetVerticesInEvenFlowerType1QPLayer_ThrowsOnBadLayerIndex(int layerIndex) { int numVerticesInCenterPolygon = 6; Assert.That(() => UsefulQPs.GetVerticesInEvenFlowerType1QPLayer(numVerticesInCenterPolygon, layerIndex), Throws.InstanceOf <ArgumentOutOfRangeException>()); }