Skip to content
ConsoleMonster
Class

TestRunViewFluent

ConsoleMonster.TestRuns

Namespace
ConsoleMonster.TestRuns
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of TestRunView, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • TestRunViewFluent

Methods

public static TestRunView Compact(TestRunView testRunView, bool value = true) #

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 = true optional
The value; true when omitted.

Returns

TestRunView The same instance.

Examples

// C# initializer or property    // C# fluent
testRunView.Compact = value;     testRunView.Compact(value);
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 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);