Esempio n. 1
0
 public static void Assert(this IAssertConfiguration configuration, Repeated repeatValidation)
 {
     configuration.MustHaveHappened(repeatValidation);
 }
Esempio n. 2
0
 public static void MustHaveHappened(this IAssertConfiguration configuration, Expression <Func <int, bool> > repeatPredicate)
 {
     configuration.MustHaveHappened(Repeated.Like(repeatPredicate));
 }
Esempio n. 3
0
 public static Repeated Like(Expression <Func <int, bool> > repeatValidation)
 {
     return(Repeated.Like(repeatValidation));
 }
Esempio n. 4
0
 public static LowerBoundRepeated Times(int numberOfTimes)
 {
     return(Repeated.Times(numberOfTimes));
 }
Esempio n. 5
0
 private void AssertSuccessfullyLaunched(int remainingTimes, Repeated currentCalls)
 {
     Assert.True(_hook.Launch());
     A.CallTo(() => _service.StartCommand()).MustHaveHappened(currentCalls);
     _hook.RemainingTimes.Should().Be(remainingTimes);
 }
Esempio n. 6
0
 private void AssertLaunchedWithError(int remainingTimes, Repeated currentCalls)
 {
     Assert.False(_hook.Launch());
     A.CallTo(() => _service.StartCommand()).MustHaveHappened(currentCalls);
     Assert.AreEqual(remainingTimes, _hook.RemainingTimes);
 }