예제 #1
0
 /// <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);
 }
예제 #2
0
파일: Spec.cs 프로젝트: fbondia/JazSharp
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
파일: Spec.cs 프로젝트: fbondia/JazSharp
 /// <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);
 }