예제 #1
0
 /// <summary>
 /// Defines a test. All tests must be contained in at least 1 level of Describes.
 /// </summary>
 /// <param name="testDescription">The description of the test. The description should start with "should".</param>
 /// <param name="test">The implementation of the test.</param>
 /// <param name="sourceFile">Do not manually specify this parameter.</param>
 /// <param name="lineNumber">Do not manually specify this parameter.</param>
 public static void It(string testDescription, Action test, [CallerFilePath] string sourceFile = default, [CallerLineNumber] int lineNumber = default)
 {
     SpecHelper.RegisterTest(testDescription, test, false, false, sourceFile, lineNumber);
 }
예제 #2
0
파일: Spec.cs 프로젝트: fbondia/JazSharp
 /// <summary>
 /// Focuses the test. Any non-focused tests will be exlcuded from the test runs.
 /// </summary>
 /// <param name="testDescription">The description of the test. The description should start with "should".</param>
 /// <param name="test">The implementation of the test.</param>
 /// <param name="sourceFile">Do not manually specify this parameter.</param>
 /// <param name="lineNumber">Do not manually specify this parameter.</param>
 public static void fIt(string testDescription, Func <StringBuilder, Task> test, [CallerFilePath] string sourceFile = default, [CallerLineNumber] int lineNumber = default)
 {
     SpecHelper.RegisterTest(testDescription, test, true, false, sourceFile, lineNumber);
 }