Ejemplo n.º 1
0
 public void EnsureComplete_should_not_throw_if_minimum_and_maximum_count_met()
 {
     using (var loop = new Loop(Times.Never()))
     {
         loop.EnsureComplete("");
         Assert.That(loop.Complete, Is.True);
     }
 }
Ejemplo n.º 2
0
 public void EnsureComplete_should_throw_if_maximum_count_not_met()
 {
     using (var loop = new Loop(Times.AtLeastOnce()))
     {
         Assert.Throws <SequenceException>(() => loop.EnsureComplete(""));
         Assert.That(loop.Complete, Is.False);
     }
 }
Ejemplo n.º 3
0
 public void EnsureComplete_should_throw_if_minimum_count_not_met()
 {
     using (var loop = new Loop(Times.Once()))
     {
         Assert.Throws<SequenceException>(() => loop.EnsureComplete(""));
         Assert.That(loop.Complete, Is.False);
     }
 }
Ejemplo n.º 4
0
 public void EnsureComplete_should_not_throw_if_minimum_and_maximum_count_met()
 {
     using (var loop = new Loop(Times.Never()))
     {
         loop.EnsureComplete("");
         Assert.That(loop.Complete, Is.True);
     }
 }