示例#1
0
 public static int GetNextStepNumber(this IBaseTest test)
 {
     test.Step = test.Step ?? 0;
     test.Step++;
     return(test.Step.Value);
 }
示例#2
0
 public static void LogStep(this IBaseTest test, string text)
 {
     Log.ForContext("LogType", "TestStep").Information($"Step #{{Step}} :: {{Text}}", test.GetNextStepNumber(), text);
 }