Beispiel #1
0
 public void GetNumberOfLayersInPointedFlowerQP_Works(int numPeriods, int expectedNumLayers)
 {
     Assert.That(UsefulQPs.GetNumberOfLayersInPointedFlowerQP(numPeriods), Is.EqualTo(expectedNumLayers));
 }
Beispiel #2
0
 public void GetNumberOfLayersInPointedFlowerQP_ThrowsOnBadNumberOfPeriods(int numPeriods)
 {
     Assert.That(() => UsefulQPs.GetNumberOfLayersInPointedFlowerQP(numPeriods), Throws.InstanceOf <ArgumentOutOfRangeException>());
 }