Exemplo n.º 1
0
 /// <summary>
 /// Defines logic that will execute after each test. This can be used to clean up
 /// after a test or check some common expectations. 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="afterEach">The logic to be executed.</param>
 public static void AfterEach(Func <Task> afterEach)
 {
     SpecHelper.AddAfterEach(afterEach);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Defines logic that will execute after each test. This can be used to clean up
 /// after a test or check some common expectations. 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="afterEach">The logic to be executed.</param>
 public static void AfterEach(Func <StringBuilder, Task> afterEach)
 {
     SpecHelper.AddAfterEach(afterEach);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Defines logic that will execute after each test. This can be used to clean up
 /// after a test or check some common expectations. 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="afterEach">The logic to be executed.</param>
 public static void AfterEach(Action afterEach)
 {
     SpecHelper.AddAfterEach(afterEach);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Defines logic that will execute after each test. This can be used to clean up
 /// after a test or check some common expectations. 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="afterEach">The logic to be executed.</param>
 public static void AfterEach(Action <StringBuilder> afterEach)
 {
     SpecHelper.AddAfterEach(afterEach);
 }