- Namespace
- TCLite
.Constraints - Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type["Is_Syntax"]
class Type type-node
Derived0["Is"]-->Type
click Derived0 "/tc-lite/api/TCLite/Is"
Syntax
public class Is_Syntax
Properties
Name | Value | Summary |
---|---|---|
Empty | EmptyConstraint |
Returns a constraint that tests for empty
static
|
False | FalseConstraint |
Returns a constraint that tests for False
static
|
Negative | LessThanConstraint |
Returns a constraint that tests for a negative value
static
|
Null | NullConstraint |
Returns a constraint that tests for null
static
|
Positive | Greater |
Returns a constraint that tests for a positive value
static
|
True | TrueConstraint |
Returns a constraint that tests for True
static
|
Unique | Unique |
Returns a constraint that tests whether a collection
contains all unique items.
static
|
Zero | EqualConstraint |
Returns a constraint that tests if item is equal to zero
static
|
Methods
Name | Value | Summary |
---|---|---|
AtLeast |
Greater |
Returns a constraint that tests whether the
actual value is greater than or equal to the suppled argument
static
|
AtMost |
Less |
Returns a constraint that tests whether the
actual value is less than or equal to the suppled argument
static
|
EqualTo |
EqualConstraint |
Returns a constraint that tests two items for equality
static
|
EquivalentTo |
Collection |
Returns a constraint that tests whether the actual value
is a collection containing the same elements as the
collection supplied as an argument.
static
|
GreaterThan |
Greater |
Returns a constraint that tests whether the
actual value is greater than the suppled argument
static
|
GreaterThanOrEqualTo |
Greater |
Returns a constraint that tests whether the
actual value is greater than or equal to the suppled argument
static
|
InRange |
RangeConstraint |
Returns a constraint that tests whether the actual value falls
within a specified range.
static
|
InstanceOf |
Instance |
Returns a constraint that tests whether the actual value
is of the type supplied as an argument or a derived type.
static
|
InstanceOf |
Instance |
Returns a constraint that tests whether the actual value
is of the type supplied as an argument or a derived type.
static
|
LessThan |
LessThanConstraint |
Returns a constraint that tests whether the
actual value is less than the suppled argument
static
|
LessThanOrEqualTo |
Less |
Returns a constraint that tests whether the
actual value is less than or equal to the suppled argument
static
|
SameAs |
SameAsConstraint |
Returns a constraint that tests that two references are the same object
static
|
TypeOf |
ExactTypeConstraint |
Returns a constraint that tests whether the actual
value is of the exact type supplied as an argument.
static
|
TypeOf |
ExactTypeConstraint |
Returns a constraint that tests whether the actual
value is of the exact type supplied as an argument.
static
|