Class StateStringBuilder
Utility class for building string representations of test operation execution states.
Inherited Members
Namespace: Responsible.State
Assembly: Responsible.dll
Syntax
public class StateStringBuilder : IndentedStringBuilder<StateStringBuilder>
Methods
AddDetails(string)
Adds details to the state of an operation.
Declaration
public void AddDetails(string details)
Parameters
Type | Name | Description |
---|---|---|
string | details | Details to add, may be multiple lines |
Remarks
The input will be split by the newline character, and added as separate lines, to respect indentation.
AddNestedDetails(string, Action<StateStringBuilder>)
Adds nested details using indentation.
This method may be called recursively from addNested
to add multiple levels of indentation.
Declaration
public void AddNestedDetails(string description, Action<StateStringBuilder> addNested)
Parameters
Type | Name | Description |
---|---|---|
string | description | Description of the details. |
Action<StateStringBuilder> | addNested | Action to add more details at an increased indentation level. |