Class
StatusPresenter
ConsoleMonster.Presenters
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(bool showWord = true) #Creates a status presenter.
Parameters
- showWord bool = true
- Whether the word follows the symbol (default true).
Methods
public PresentedValue Present(object? value, PresenterContext context) #Presents a value.
Parameters
- value object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.