Summary
Implementation of a fake
IConsole
.
- Namespace
- Cake
.Testing - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IConsole"]
click Interface0 "/api/Cake.Core/IConsole"
Type["FakeConsole"]
class Type type-node
Syntax
public sealed class FakeConsole : IConsole
Constructors
Name | Summary |
---|---|
FakeConsole |
Initializes a new instance of the FakeConsole class.
|
Properties
Name | Value | Summary |
---|---|---|
BackgroundColor | ConsoleColor |
Gets or sets the background color.
|
ErrorMessages | List |
Gets or sets the error messages.
|
ForegroundColor | ConsoleColor |
Gets or sets the foreground color.
|
Messages | List |
Gets or sets the messages.
|
OutputConsoleColor | bool |
Gets or sets a value indicating whether console color should be added to the text
string if
SupportAnsiEscapeCodes is set to false .
|
Support |
bool |
Gets a value indicating whether or not the console supports ANSI escape codes.
|
Methods
Name | Value | Summary |
---|---|---|
CreateAnsiConsole |
FakeConsole |
Creates a new fake console that supports ANSI escape codes.
static
|
ResetColor |
void |
Sets the foreground and background console colors to their defaults.
|
Write |
void |
Writes the text representation of the specified array of objects to the
console output using the specified format information.
|
WriteError |
void |
Writes the text representation of the specified array of objects to the
console error output using the specified format information.
|
WriteErrorLine |
void |
Writes the text representation of the specified array of objects, followed
by the current line terminator, to the console error output using the
specified format information.
|
WriteLine |
void |
Writes the text representation of the specified array of objects, followed
by the current line terminator, to the console output using the specified
format information.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
WriteErrorLine |
void |
Writes an empty line to the console error output.
From ConsoleExtensions
|
WriteLine |
void |
Writes an empty line to the console output.
From ConsoleExtensions
|