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