FakeConfiguration Class

Summary

Implementation of a fake ICakeConfiguration.
Namespace
Cake.Testing
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["ICakeConfiguration"] click Interface0 "/api/Cake.Core.Configuration/ICakeConfiguration" Type["FakeConfiguration"] class Type type-node

Syntax

public sealed class FakeConfiguration : ICakeConfiguration

Constructors

Name Summary
FakeConfiguration() Initializes a new instance of the FakeConfiguration class.

Methods

Name Value Summary
GetValue(string) string
Gets the value that corresponds to the specified key.
SetValue(string, string) void
Sets the value that corresponds to the specified key.

Extension Methods

Name Value Summary
Dump<FakeConfiguration>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
GetModulePath(DirectoryPath, ICakeEnvironment) DirectoryPath
Gets the module directory path.
GetToolPath(DirectoryPath, ICakeEnvironment) DirectoryPath
Gets the tool directory path.
IsIn<FakeConfiguration>(FakeConfiguration[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<FakeConfiguration>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<FakeConfiguration>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<FakeConfiguration>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<FakeConfiguration>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin