Skip to content
ConsoleMonster

API Reference

Class

StatusPresenter

Namespace ConsoleMonster.Presenters
Assembly ConsoleMonster
Implements
Modifiers sealed

A status as symbol, word and tone: ✓ PASS, ✗ FAIL, ▴ WARN; [FAIL] on the ASCII tier. Accepts StatusKind values and status words (pass, passed, ok, fail, failed, error, warn, warning, skip...). Values that are not statuses are shown as text.

Inheritance

  • Object
  • StatusPresenter

Constructors

public StatusPresenter(Boolean showWord = true) #

Creates a status presenter.

Parameters

showWord System.Boolean = true optionalposition: 0
Whether the word follows the symbol (default true).

Methods

public PresentedValue Present(Object? value, PresenterContext context) #
Returns: PresentedValue

Presents a value.

Parameters

value System.Object? requiredposition: 0
The raw value (may be null).
context ConsoleMonster.Presenters.PresenterContext requiredposition: 1
Culture, clock, time zone, column statistics and the render context.

Returns

The presented value.

Properties

public Boolean ShowWord { get; } #

Whether the word follows the symbol.