コード例 #1
0
 /// <summary>
 /// Focuses the tests contained in this describe. All non-focused tests will
 /// be excluded from the test run.
 /// </summary>
 /// <param name="definition">The definition of the describe.</param>
 public static void fDescribe <TType>(Action definition)
 {
     SpecHelper.PushDescribe(typeof(TType).Name, true, false);
     definition();
     SpecHelper.PopDescribe();
 }
コード例 #2
0
 /// <summary>
 /// Focuses the tests contained in this describe. All non-focused tests will
 /// be excluded from the test run.
 /// </summary>
 /// <param name="childDescription">The description of the describe.</param>
 /// <param name="definition">The definition of the describe.</param>
 public static void fDescribe(string childDescription, Action definition)
 {
     SpecHelper.PushDescribe(childDescription, true, false);
     definition();
     SpecHelper.PopDescribe();
 }
コード例 #3
0
 /// <summary>
 /// Describes a context for a test. This should usually be either a member name or
 /// a scenario whose tests are grouped together.
 /// </summary>
 /// <param name="description">The name of the member, the scenario description or similar.</param>
 /// <param name="definition">The definition of the describe.</param>
 public static void Describe(string description, Action definition)
 {
     SpecHelper.PushDescribe(description, false, false);
     definition();
     SpecHelper.PopDescribe();
 }