Beispiel #1
0
 public void GetNumberOfLayersInEvenFlowerType1QP_Works(int numVerticesInCenterPolygon, int expectedNumLayers)
 {
     Assert.That(UsefulQPs.GetNumberOfLayersInEvenFlowerType1QP(numVerticesInCenterPolygon), Is.EqualTo(expectedNumLayers));
 }
Beispiel #2
0
 public void GetNumberOfLayersInEvenFlowerType1QP_ThrowsOnBadNumberOfVerticesInCenterPolygon(int numVerticesInCenterPolygon)
 {
     Assert.That(() => UsefulQPs.GetNumberOfLayersInEvenFlowerType1QP(numVerticesInCenterPolygon), Throws.InstanceOf <ArgumentOutOfRangeException>());
 }