Skip to content
ConsoleMonster
Class

TestRunsFluent

ConsoleMonster.TestRuns

Namespace
ConsoleMonster.TestRuns
Assembly
ConsoleMonster
Modifiers
static

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

Compact 2 overloads
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 required
The instance.
value bool required
The value.

Returns

TestRunView The same instance.

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 required
The instance to configure.

Returns

TestRunView The same instance.
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 required
The instance.
value int required
The value.

Returns

TestRunView The same instance.

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 required
The instance.
value int required
The value.

Returns

TestRunView The same instance.

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 required
The instance.
value int required
The value.

Returns

TestRunSummary The same instance.

Examples

// C# initializer or property          // C# fluent
testRunSummary.MaxFailures = value;    testRunSummary.MaxFailures(value);
ShowFailures 2 overloads
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 required
The instance.
value bool required
The value.

Returns

TestRunSummary The same instance.

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 required
The instance to configure.

Returns

TestRunSummary The same instance.
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 required
The instance.
value string? required
The value.

Returns

TestRunView The same instance.

Examples

// C# initializer or property    // C# fluent
testRunView.Title = value;       testRunView.Title(value);