public void GetNumberOfLayersInCobwebQP_Works(int numVerticesInCenterPolygon, int expectedNumLayers) { Assert.That(UsefulQPs.GetNumberOfLayersInCobwebQP(numVerticesInCenterPolygon), Is.EqualTo(expectedNumLayers)); }
public void GetNumberOfLayersInCobwebQP_ThrowsOnBadNumberOfVerticesInCenterPolygon(int numVerticesInCenterPolygon) { Assert.That(() => UsefulQPs.GetNumberOfLayersInCobwebQP(numVerticesInCenterPolygon), Throws.InstanceOf <ArgumentOutOfRangeException>()); }