Class StringBuilderTextOutputProvider
Implementation of ITextOutputProvider that wraps a StringBuilder. This is helpful for checking output during unit testing or for implementing a user interface that could call this command
Implements
Inherited Members
Namespace: Benday.CommandsFramework
Assembly: Benday.CommandsFramework.dll
Syntax
public class StringBuilderTextOutputProvider : ITextOutputProvider
Constructors
| Edit this page View SourceStringBuilderTextOutputProvider()
Declaration
public StringBuilderTextOutputProvider()
Methods
| Edit this page View SourceGetOutput()
Get the output from the string builder
Declaration
public string GetOutput()
Returns
| Type | Description |
|---|---|
| string |
Write(string)
Write text to output without an ending newline
Declaration
public void Write(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
WriteLine()
Write a new line
Declaration
public void WriteLine()
WriteLine(string)
Write a line of text
Declaration
public void WriteLine(string line)
Parameters
| Type | Name | Description |
|---|---|---|
| string | line |