Is Class

Summary

Helper class exposing properties and methods that form part of the Constraint syntax.
Namespace
TCLite
Base Types
graph BT Type-->Base0["Is_Syntax"] click Base0 "/tc-lite/api/TCLite.Constraints/Is_Syntax" Base0-->Base1["object"] Type["Is"] class Type type-node

Syntax

public class Is : Is_Syntax

Remarks

The actual syntactic elements are defined in the base class, Is_Syntax, a partial class, with individual elements distributed across multiple files.

Properties

Name Value Summary
Empty EmptyConstraint
Returns a constraint that tests for empty
Inherited from Is_Syntax
static
False FalseConstraint
Returns a constraint that tests for False
Inherited from Is_Syntax
static
Negative LessThanConstraint<int>
Returns a constraint that tests for a negative value
Inherited from Is_Syntax
static
Null NullConstraint
Returns a constraint that tests for null
Inherited from Is_Syntax
static
Positive GreaterThanConstraint<int>
Returns a constraint that tests for a positive value
Inherited from Is_Syntax
static
True TrueConstraint
Returns a constraint that tests for True
Inherited from Is_Syntax
static
Unique UniqueItemsConstraint
Returns a constraint that tests whether a collection contains all unique items.
Inherited from Is_Syntax
static
Zero EqualConstraint<int>
Returns a constraint that tests if item is equal to zero
Inherited from Is_Syntax
static

Methods

Name Value Summary
AtLeast<T>(T) GreaterThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
Inherited from Is_Syntax
static
AtMost<T>(T) LessThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
Inherited from Is_Syntax
static
EqualTo<T>(T) EqualConstraint<T>
Returns a constraint that tests two items for equality
Inherited from Is_Syntax
static
EquivalentTo(IEnumerable) CollectionEquivalentConstraint
Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument.
Inherited from Is_Syntax
static
GreaterThan<T>(T) GreaterThanConstraint<T>
Returns a constraint that tests whether the actual value is greater than the suppled argument
Inherited from Is_Syntax
static
GreaterThanOrEqualTo<T>(T) GreaterThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
Inherited from Is_Syntax
static
InRange<T>(T, T) RangeConstraint<T>
Returns a constraint that tests whether the actual value falls within a specified range.
Inherited from Is_Syntax
static
InstanceOf(Type) InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
Inherited from Is_Syntax
static
InstanceOf<T>() InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
Inherited from Is_Syntax
static
LessThan<T>(T) LessThanConstraint<T>
Returns a constraint that tests whether the actual value is less than the suppled argument
Inherited from Is_Syntax
static
LessThanOrEqualTo<T>(T) LessThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
Inherited from Is_Syntax
static
SameAs<T>(T) SameAsConstraint<T>
Returns a constraint that tests that two references are the same object
Inherited from Is_Syntax
static
TypeOf(Type) ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
Inherited from Is_Syntax
static
TypeOf<T>() ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
Inherited from Is_Syntax
static