Click or drag to resize

CovenantAssert Method

Asserts that a condition is true.

Namespace:  System.Diagnostics.Contracts
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.10.0
Syntax
public static void Assert(
	bool condition,
	string message = null
)

Parameters

condition
Type: SystemBoolean
The condition to be tested.
message (Optional)
Type: SystemString
An optional message to be included in the exception thrown.
Exceptions
ExceptionCondition
AssertExceptionThrown if condition is false.
See Also