Exemple #1
0
        public IAssert <T> ThenCritically <T0>(Action <T, T0> step, T0 arg0, CriticalAssertOptions <T> criticalAssertOptions)
        {
            this.testSteps.Add(new CriticalAssertTestStep <T>(step,
                                                              c =>
            {
                step.Invoke(c, arg0);
            },
                                                              this.context,
                                                              GetTextFromMethod(MethodBase.GetCurrentMethod()),
                                                              criticalAssertOptions));

            return(this);
        }
Exemple #2
0
        public CriticalAssertOptions <T> Build()
        {
            var result = new CriticalAssertOptions <T>(assertRetryAttempts, assertRetryStandOffPeriod, testRetryAttempts, testRetryStandOffPeriod, actionToReturnToOnTestFailure);

            return(result);
        }
Exemple #3
0
 public IAssert <T> ThenCritically(Action <T> step, CriticalAssertOptions <T> criticalAssertOptions)
 {
     this.testSteps.Add(new CriticalAssertTestStep <T>(step, step, this.context, GetTextFromMethod(MethodBase.GetCurrentMethod()), criticalAssertOptions));
     return(this);
 }
Exemple #4
0
        public IAssert <T> AndCritically <T0, T1, T2, T3, T4>(Action <T, T0, T1, T2, T3, T4> step, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, CriticalAssertOptions <T> criticalAssertOptions)
        {
            this.testSteps.Add(new CriticalAssertTestStep <T>(step,
                                                              c =>
            {
                step.Invoke(c, arg0, arg1, arg2, arg3, arg4);
            },
                                                              this.context,
                                                              GetTextFromMethod(MethodBase.GetCurrentMethod()),
                                                              criticalAssertOptions));

            return(this);
        }