Exemplo n.º 1
0
 public void GetNumberOfLayersInEvenFlowerType2QP_Works(int numVerticesInCenterPolygon, int expectedNumLayers)
 {
     Assert.That(UsefulQPs.GetNumberOfLayersInEvenFlowerType2QP(numVerticesInCenterPolygon), Is.EqualTo(expectedNumLayers));
 }
Exemplo n.º 2
0
 public void GetNumberOfLayersInEvenFlowerType2QP_ThrowsOnBadNumberOfVerticesInCenterPolygon(int numVerticesInCenterPolygon)
 {
     Assert.That(() => UsefulQPs.GetNumberOfLayersInEvenFlowerType2QP(numVerticesInCenterPolygon), Throws.InstanceOf <ArgumentOutOfRangeException>());
 }