Skip to content
ConsoleMonster

API Reference

Enum

StatusKind

Namespace ConsoleMonster.Styling
Assembly ConsoleMonster
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

A status shared by status lists, lanes, phases, tables and logs. Each status has a theme token and a glyph, so status is never shown by colour alone.

Inheritance

  • Enum
  • StatusKind

Usage

Explore 91 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 61

Values

public const StatusKind Pending #

Not started.

Value: 0
public const StatusKind Running #

In progress.

Value: 1
public const StatusKind Pass #

Succeeded.

Value: 2
public const StatusKind Fail #

Failed.

Value: 3
public const StatusKind Warn #

Completed with a warning.

Value: 4
public const StatusKind Skip #

Skipped or not applicable.

Value: 5
public const StatusKind Info #

Informational.

Value: 6

Extension Methods

public static String ToEnglishWord(StatusKind status) #
Returns: String

The English status word (PASS, FAIL...), for logs and machine-read output.

Parameters

status ConsoleMonster.Styling.StatusKind requiredposition: 0
The status.

Returns

The word.

public static ThemeToken ToToken(StatusKind status) #
Returns: ThemeToken

Returns the theme token that colours a status.

Parameters

status ConsoleMonster.Styling.StatusKind requiredposition: 0
The status.

Returns

The token.

public static String ToWord(StatusKind status) #
Returns: String

A short upper-case word for a status (PASS, FAIL, WARN, SKIP, RUN, WAIT, INFO in English), in the language of WidgetLabels.Current.

Parameters

status ConsoleMonster.Styling.StatusKind requiredposition: 0
The status.

Returns

The word.