Summary
The global Tasty Scope.
- Namespace
- Xenial
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["Tasty"]
class Type type-node
Syntax
public static class Tasty
Examples
using static Xenial.Tasty;
Describe("Basic math:", () =>
{
It("1 + 1 = 2", () => 1 + 2 == 3);
It("1 - 1 = 0", () =>
{
var sub = 1 - 1var result = sub == 0;
return result;
});
});
Run();
Properties
Name | Value | Summary |
---|---|---|
TastyDefaultScope | TastyScope |
static
|
Methods
Name | Value | Summary |
---|---|---|
AfterEach |
void |
static
|
AfterEach |
void |
static
|
BeforeEach |
void |
static
|
BeforeEach |
void |
static
|
Describe |
TestGroup |
Adds a describe block eg.
TestGroup to the current scope
static
|
Describe |
TestGroup |
Adds a describe block eg.
TestGroup to the current scope
static
|
FDescribe |
TestGroup |
Adds a describe block eg.
TestGroup to the current scope
and mark all nested TestGroups and TestCases as forced/focused
static
|
FDescribe |
TestGroup |
Adds a describe block eg.
TestGroup to the current scope
and mark all nested TestGroups and TestCases as forced/focused
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
Return true if the test is succeeded, otherwise false
Return an additional message that will be reported if the test is failed
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
Return true if the test is succeeded otherwise false
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
Return true if the test is succeeded, otherwise false
Return an additional message that will be reported if the test is failed
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
Return true if the test is succeeded otherwise false
static
|
FIt |
TestCase |
Adds a
TestCase to the current scope
and mark it as forced/focused
static
|
It |
TestCase |
Adds a
TestCase to the current scope
static
|
It |
TestCase |
Adds a
TestCase to the current scope
Return true if the test is succeeded otherwise falseS
static
|
It |
TestCase |
Adds a
TestCase to the current scope
Return true if the test is succeeded, otherwise false
Return an additional message that will be reported if the test is failed
static
|
It |
TestCase |
Adds a
TestCase to the current scope
static
|
It |
TestCase |
Adds a
TestCase to the current scope
static
|
It |
TestCase |
Adds a
TestCase to the current scope
Return true if the test is succeeded, otherwise false
Return an additional message that will be reported if the test is failed
static
|
It |
TestCase |
Adds a
TestCase to the current scope
static
|
RegisterReporter |
TastyScope |
Registers an async test reporter.
Gets called immediate after the test was executed
AsyncTestReporter
static
|
RegisterReporter |
TastyScope |
Registers an async test summary reporter.
Gets called after all tests are executed.
AsyncTestSummaryReporter
static
|
Report |
Task |
Reports the specified test to the configured test reporters.
static
|
Run |
Task |
Runs the tests in the global scope.
Returns an non zero exit code if all tests succeed
static
|
Run |
Task |
Runs the tests in the global scope.
Returns an non zero exit code if all tests succeed
static
|