Exemple #1
0
 public void GetNumberOfLayersInOddFlowerQP_Works(int numVerticesInCenterPolygon, int expectedNumLayers)
 {
     Assert.That(UsefulQPs.GetNumberOfLayersInOddFlowerQP(numVerticesInCenterPolygon), Is.EqualTo(expectedNumLayers));
 }
Exemple #2
0
 public void GetNumberOfLayersInOddFlowerQP_ThrowsOnBadNumberOfVerticesInCenterPolygon(int numVerticesInCenterPolygon)
 {
     Assert.That(() => UsefulQPs.GetNumberOfLayersInOddFlowerQP(numVerticesInCenterPolygon), Throws.InstanceOf <ArgumentOutOfRangeException>());
 }