This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Contains extensions for guard clauses
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .AssertExtensions - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["AssertExtensions"]
class Type type-node
Syntax
public static class AssertExtensions
Attributes
Type | Description |
---|---|
Cake |
Methods
Name | Value | Summary |
---|---|---|
IsNullOrEmpty |
bool |
static
|
IsNullOrEmpty |
bool |
static
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
static
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
static
|
ThrowIfNullOrEmpty |
string |
Throws a
System.ArgumentNullException if a string is null or empty, otherwise returns the value
static
|
Throw |
string |
Throws a
System.ArgumentNullException if a string is null or white space, otherwise returns the value
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|