예제 #1
0
        public IAssert <T> Then <T0, T1>(Action <T, T0, T1> step, T0 arg0, T1 arg1, AssertOptions assertOptions)
        {
            this.testSteps.Add(new AssertTestStep <T>(step,
                                                      c =>
            {
                step.Invoke(c, arg0, arg1);
            },
                                                      this.context,
                                                      GetTextFromMethod(MethodBase.GetCurrentMethod()),
                                                      assertOptions));

            return(this);
        }
예제 #2
0
 public IAssert <T> Then(Action <T> step, AssertOptions assertOptions)
 {
     this.testSteps.Add(new AssertTestStep <T>(step, step, this.context, GetTextFromMethod(MethodBase.GetCurrentMethod()), assertOptions));
     return(this);
 }
예제 #3
0
        public IAssert <T> And <T0, T1, T2, T3, T4>(Action <T, T0, T1, T2, T3, T4> step, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, AssertOptions assertOptions)
        {
            this.testSteps.Add(new AssertTestStep <T>(step,
                                                      c =>
            {
                step.Invoke(c, arg0, arg1, arg2, arg3, arg4);
            },
                                                      this.context,
                                                      GetTextFromMethod(MethodBase.GetCurrentMethod()),
                                                      assertOptions));

            return(this);
        }