Is_Syntax Class

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<int>
Returns a constraint that tests for a negative value
static
Null NullConstraint
Returns a constraint that tests for null
static
Positive GreaterThanConstraint<int>
Returns a constraint that tests for a positive value
static
True TrueConstraint
Returns a constraint that tests for True
static
Unique UniqueItemsConstraint
Returns a constraint that tests whether a collection contains all unique items.
static
Zero EqualConstraint<int>
Returns a constraint that tests if item is equal to zero
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
static
AtMost<T>(T) LessThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
static
EqualTo<T>(T) EqualConstraint<T>
Returns a constraint that tests two items for equality
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.
static
GreaterThan<T>(T) GreaterThanConstraint<T>
Returns a constraint that tests whether the actual value is greater than the suppled argument
static
GreaterThanOrEqualTo<T>(T) GreaterThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
static
InRange<T>(T, T) RangeConstraint<T>
Returns a constraint that tests whether the actual value falls within a specified range.
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.
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.
static
LessThan<T>(T) LessThanConstraint<T>
Returns a constraint that tests whether the actual value is less than the suppled argument
static
LessThanOrEqualTo<T>(T) LessThanOrEqualConstraint<T>
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
static
SameAs<T>(T) SameAsConstraint<T>
Returns a constraint that tests that two references are the same object
static
TypeOf(Type) ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
static
TypeOf<T>() ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
static