コード例 #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);
 }