TestRunsFluent
ConsoleMonster.TestRuns
The fluent methods of TestRunSummary, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- TestRunsFluent
Methods
public static TestRunView Compact(TestRunView testRunView, bool value) #Sets TestRunView.Compact: Draws the compact layout (files, running test, first failures) at the height it needs.
Parameters
- testRunView ConsoleMonster.TestRuns.TestRunView
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
testRunView.Compact = value; testRunView.Compact(value);public static TestRunView Compact(TestRunView testRunView) #Sets TestRunView.Compact to true.
Parameters
- testRunView ConsoleMonster.TestRuns.TestRunView
- The instance to configure.
public static TestRunView CompactFailures(TestRunView testRunView, int value) #Sets TestRunView.CompactFailures: The most failures the compact layout shows (default 2).
Parameters
- testRunView ConsoleMonster.TestRuns.TestRunView
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
testRunView.CompactFailures = value; testRunView.CompactFailures(value);public static TestRunView CompactFiles(TestRunView testRunView, int value) #Sets TestRunView.CompactFiles: The most file lanes the compact layout shows (default 6).
Parameters
- testRunView ConsoleMonster.TestRuns.TestRunView
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
testRunView.CompactFiles = value; testRunView.CompactFiles(value);public static TestRunSummary MaxFailures(TestRunSummary testRunSummary, int value) #Sets TestRunSummary.MaxFailures: The most failures listed (default 20); the rest are counted.
Parameters
- testRunSummary ConsoleMonster.TestRuns.TestRunSummary
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
testRunSummary.MaxFailures = value; testRunSummary.MaxFailures(value);public static TestRunSummary ShowFailures(TestRunSummary testRunSummary, bool value) #Sets TestRunSummary.ShowFailures: Whether the failures are listed (default true); off when the test framework already printed them.
Parameters
- testRunSummary ConsoleMonster.TestRuns.TestRunSummary
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
testRunSummary.ShowFailures = value; testRunSummary.ShowFailures(value);public static TestRunSummary ShowFailures(TestRunSummary testRunSummary) #Sets TestRunSummary.ShowFailures to true.
Parameters
- testRunSummary ConsoleMonster.TestRuns.TestRunSummary
- The instance to configure.
public static TestRunView Title(TestRunView testRunView, string? value) #Sets TestRunView.Title: The header title, or null (default) for the built-in word ("Tests" in English).
Parameters
- testRunView ConsoleMonster.TestRuns.TestRunView
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
testRunView.Title = value; testRunView.Title(value);