API Reference
Class
StatusPresenter
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
- Whether the word follows the symbol (default true).
Methods
public PresentedValue Present(Object? value, PresenterContext context) #Returns:
PresentedValuePresents a value.
Parameters
- value System.Object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.
Returns
The presented value.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?