/// <summary> /// Defines logic that will execute before each test. This is used to initialise /// variables, spies and static values that are shared among multiple tests. The /// logic contained will only execute for tests in the current Describe context /// or any child Describe contexts. Before eaches can only be defined inside a /// Describe. /// </summary> /// <param name="beforeEach">The logic to be executed.</param> public static void BeforeEach(Func <Task> beforeEach) { SpecHelper.AddBeforeEach(beforeEach); }
/// <summary> /// Defines logic that will execute before each test. This is used to initialise /// variables, spies and static values that are shared among multiple tests. The /// logic contained will only execute for tests in the current Describe context /// or any child Describe contexts. Before eaches can only be defined inside a /// Describe. /// </summary> /// <param name="beforeEach">The logic to be executed.</param> public static void BeforeEach(Func <StringBuilder, Task> beforeEach) { SpecHelper.AddBeforeEach(beforeEach); }
/// <summary> /// Defines logic that will execute before each test. This is used to initialise /// variables, spies and static values that are shared among multiple tests. The /// logic contained will only execute for tests in the current Describe context /// or any child Describe contexts. Before eaches can only be defined inside a /// Describe. /// </summary> /// <param name="beforeEach">The logic to be executed.</param> public static void BeforeEach(Action beforeEach) { SpecHelper.AddBeforeEach(beforeEach); }
/// <summary> /// Defines logic that will execute before each test. This is used to initialise /// variables, spies and static values that are shared among multiple tests. The /// logic contained will only execute for tests in the current Describe context /// or any child Describe contexts. Before eaches can only be defined inside a /// Describe. /// </summary> /// <param name="beforeEach">The logic to be executed.</param> public static void BeforeEach(Action <StringBuilder> beforeEach) { SpecHelper.AddBeforeEach(beforeEach); }