Пример #1
0
 public void GetNumberOfLayersInCobwebQP_Works(int numVerticesInCenterPolygon, int expectedNumLayers)
 {
     Assert.That(UsefulQPs.GetNumberOfLayersInCobwebQP(numVerticesInCenterPolygon), Is.EqualTo(expectedNumLayers));
 }
Пример #2
0
 public void GetNumberOfLayersInCobwebQP_ThrowsOnBadNumberOfVerticesInCenterPolygon(int numVerticesInCenterPolygon)
 {
     Assert.That(() => UsefulQPs.GetNumberOfLayersInCobwebQP(numVerticesInCenterPolygon), Throws.InstanceOf <ArgumentOutOfRangeException>());
 }