Click or drag to resize

Ensure Methods

The Ensure type exposes the following members.

Methods
  NameDescription
Public methodStatic memberHasValueT
Ensures that the value of a parameter is not null.
Public methodStatic memberIsBetweenT
Ensures that the value of a parameter is between a minimum and a maximum value.
Public methodStatic memberIsEqualToT
Ensures that the value of a parameter is equal to a comparand.
Public methodStatic memberIsGreaterThanT
Ensures that the value of a parameter is greater than a comparand.
Public methodStatic memberIsGreaterThanOrEqualToT
Ensures that the value of a parameter is greater than or equal to a comparand.
Public methodStatic memberIsGreaterThanOrEqualToZero(Int32, String)
Ensures that the value of a parameter is greater than or equal to zero.
Public methodStatic memberIsGreaterThanOrEqualToZero(Int64, String)
Ensures that the value of a parameter is greater than or equal to zero.
Public methodStatic memberIsGreaterThanOrEqualToZero(TimeSpan, String)
Ensures that the value of a parameter is greater than or equal to zero.
Public methodStatic memberIsGreaterThanZero(Double, String)
Ensures that the value of a parameter is greater than zero.
Public methodStatic memberIsGreaterThanZero(Int32, String)
Ensures that the value of a parameter is greater than zero.
Public methodStatic memberIsGreaterThanZero(Int64, String)
Ensures that the value of a parameter is greater than zero.
Public methodStatic memberIsGreaterThanZero(TimeSpan, String)
Ensures that the value of a parameter is greater than zero.
Public methodStatic memberIsInfiniteOrGreaterThanOrEqualToZero
Ensures that the value of a parameter is infinite or greater than or equal to zero.
Public methodStatic memberIsInfiniteOrGreaterThanZero
Ensures that the value of a parameter is infinite or greater than zero.
Public methodStatic memberIsNotNullT
Ensures that the value of a parameter is not null.
Public methodStatic memberIsNotNullAndDoesNotContainAnyNullsT
Ensures that the value of a parameter is not null and does not contain any nulls.
Public methodStatic memberIsNotNullOrEmpty(String, String)
Ensures that the value of a parameter is not null or empty.
Public methodStatic memberIsNotNullOrEmptyT(IEnumerableT, String)
Ensures that the value of a parameter is not null or empty.
Public methodStatic memberIsNullT
Ensures that the value of a parameter is null.
Public methodStatic memberIsNullOrBetweenT
Ensures that the value of a parameter is null or is between a minimum and a maximum value.
Public methodStatic memberIsNullOrGreaterThanOrEqualToZero(NullableInt32, String)
Ensures that the value of a parameter is null or greater than or equal to zero.
Public methodStatic memberIsNullOrGreaterThanOrEqualToZero(NullableInt64, String)
Ensures that the value of a parameter is null or greater than or equal to zero.
Public methodStatic memberIsNullOrGreaterThanZero(NullableInt32, String)
Ensures that the value of a parameter is null or greater than zero.
Public methodStatic memberIsNullOrGreaterThanZero(NullableInt64, String)
Ensures that the value of a parameter is null or greater than zero.
Public methodStatic memberIsNullOrGreaterThanZero(NullableTimeSpan, String)
Ensures that the value of a parameter is null or greater than zero.
Public methodStatic memberIsNullOrInfiniteOrGreaterThanOrEqualToZero
Ensures that the value of a parameter is null, or infinite, or greater than or equal to zero.
Public methodStatic memberIsNullOrNotEmpty
Ensures that the value of a parameter is null or not empty.
Public methodStatic memberIsNullOrValidTimeout
Ensures that the value of a parameter is null or a valid timeout.
Public methodStatic memberIsValidTimeout
Ensures that the value of a parameter is a valid timeout.
Public methodStatic memberThat(Boolean, String)
Ensures that an assertion is true.
Public methodStatic memberThat(Boolean, String, String)
Ensures that an assertion is true.
Public methodStatic memberThatT(T, FuncT, Boolean, String, String)
Ensures that the value of a parameter meets an assertion.
Top
See Also