|
void | CodeShouldNotCompile (string fragment) |
|
void | CodeShouldNotCompileAsFinishedConstraint (string fragment) |
|
void | Expect (bool condition, string message, params object[] args) |
| Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to Assert.That(bool, string, object[]). More...
|
|
void | Expect (bool condition) |
| Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to Assert.That(bool). More...
|
|
void | Expect< TActual > (ActualValueDelegate< TActual > del, IResolveConstraint expr) |
| Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
|
|
void | Expect< TActual > (ActualValueDelegate< TActual > del, IResolveConstraint expr, string message, params object[] args) |
| Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
|
|
void | Expect (TestDelegate code, IResolveConstraint constraint) |
| Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided. More...
|
|
ListMapper | Map (ICollection original) |
| Returns a ListMapper based on a collection. More...
|
|
ResolvableConstraintExpression | Property (string name) |
| Returns a new PropertyConstraintExpression, which will either test for the existence of the named property on the object being tested or apply any following constraint to that property. More...
|
|
ResolvableConstraintExpression | Attribute (Type expectedType) |
| Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
|
|
ResolvableConstraintExpression | Attribute< TExpected > () |
| Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
|
|
EqualConstraint | EqualTo (object expected) |
| Returns a constraint that tests two items for equality More...
|
|
SameAsConstraint | SameAs (object expected) |
| Returns a constraint that tests that two references are the same object More...
|
|
GreaterThanConstraint | GreaterThan (object expected) |
| Returns a constraint that tests whether the actual value is greater than the supplied argument More...
|
|
GreaterThanOrEqualConstraint | GreaterThanOrEqualTo (object expected) |
| Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
|
|
GreaterThanOrEqualConstraint | AtLeast (object expected) |
| Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
|
|
LessThanConstraint | LessThan (object expected) |
| Returns a constraint that tests whether the actual value is less than the supplied argument More...
|
|
LessThanOrEqualConstraint | LessThanOrEqualTo (object expected) |
| Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
|
|
LessThanOrEqualConstraint | AtMost (object expected) |
| Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
|
|
ExactTypeConstraint | TypeOf (Type expectedType) |
| Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
|
|
ExactTypeConstraint | TypeOf< TExpected > () |
| Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
|
|
InstanceOfTypeConstraint | InstanceOf (Type expectedType) |
| Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
|
|
InstanceOfTypeConstraint | InstanceOf< TExpected > () |
| Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
|
|
AssignableFromConstraint | AssignableFrom (Type expectedType) |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableFromConstraint | AssignableFrom< TExpected > () |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableToConstraint | AssignableTo (Type expectedType) |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableToConstraint | AssignableTo< TExpected > () |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
CollectionEquivalentConstraint | EquivalentTo (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument. More...
|
|
CollectionSubsetConstraint | SubsetOf (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. More...
|
|
CollectionSupersetConstraint | SupersetOf (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a superset of the collection supplied as an argument. More...
|
|
CollectionContainsConstraint | Member (object expected) |
| Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
|
|
CollectionContainsConstraint | Contains (object expected) |
| Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
|
|
ContainsConstraint | Contains (string expected) |
| Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level constraint, depending on the type of the actual argument. This overload is only used if the item sought is a string, since any other type implies that we are looking for a collection member. More...
|
|
SubstringConstraint | StringContaining (string expected) |
| Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
|
|
SubstringConstraint | ContainsSubstring (string expected) |
| Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
|
|
SubstringConstraint | DoesNotContain (string expected) |
| Returns a constraint that fails if the actual value contains the substring supplied as an argument. More...
|
|
StartsWithConstraint | StartWith (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
StartsWithConstraint | StartsWith (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
StartsWithConstraint | StringStarting (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
StartsWithConstraint | DoesNotStartWith (string expected) |
| Returns a constraint that fails if the actual value starts with the substring supplied as an argument. More...
|
|
EndsWithConstraint | EndWith (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
EndsWithConstraint | EndsWith (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
EndsWithConstraint | StringEnding (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
EndsWithConstraint | DoesNotEndWith (string expected) |
| Returns a constraint that fails if the actual value ends with the substring supplied as an argument. More...
|
|
RegexConstraint | Match (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
RegexConstraint | Matches (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
RegexConstraint | StringMatching (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
RegexConstraint | DoesNotMatch (string pattern) |
| Returns a constraint that fails if the actual value matches the pattern supplied as an argument. More...
|
|
SamePathConstraint | SamePath (string expected) |
| Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization. More...
|
|
SubPathConstraint | SubPathOf (string expected) |
| Returns a constraint that tests whether the path provided is a subpath of the expected path after canonicalization. More...
|
|
SamePathOrUnderConstraint | SamePathOrUnder (string expected) |
| Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. More...
|
|
RangeConstraint | InRange (IComparable from, IComparable to) |
| Returns a constraint that tests whether the actual value falls within a specified range. More...
|
|
|
static void | Expect< TActual > (TActual actual, IResolveConstraint expression) |
| Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
|
|
static void | Expect< TActual > (TActual actual, IResolveConstraint expression, string message, params object[] args) |
| Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
|
|
static ConstraintExpression | Exactly (int expectedCount) |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed. More...
|
|
ConstraintExpression | Not [get] |
| Returns a ConstraintExpression that negates any following constraint. More...
|
|
ConstraintExpression | No [get] |
| Returns a ConstraintExpression that negates any following constraint. More...
|
|
ConstraintExpression | All [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. More...
|
|
ConstraintExpression | Some [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. More...
|
|
ConstraintExpression | None [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. More...
|
|
ResolvableConstraintExpression | Length [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. More...
|
|
ResolvableConstraintExpression | Count [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. More...
|
|
ResolvableConstraintExpression | Message [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. More...
|
|
ResolvableConstraintExpression | InnerException [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. More...
|
|
NullConstraint | Null [get] |
| Returns a constraint that tests for null More...
|
|
TrueConstraint | True [get] |
| Returns a constraint that tests for True More...
|
|
FalseConstraint | False [get] |
| Returns a constraint that tests for False More...
|
|
GreaterThanConstraint | Positive [get] |
| Returns a constraint that tests for a positive value More...
|
|
LessThanConstraint | Negative [get] |
| Returns a constraint that tests for a negative value More...
|
|
NaNConstraint | NaN [get] |
| Returns a constraint that tests for NaN More...
|
|
EmptyConstraint | Empty [get] |
| Returns a constraint that tests for empty More...
|
|
UniqueItemsConstraint | Unique [get] |
| Returns a constraint that tests whether a collection contains all unique items. More...
|
|
BinarySerializableConstraint | BinarySerializable [get] |
| Returns a constraint that tests whether an object graph is serializable in binary format. More...
|
|
XmlSerializableConstraint | XmlSerializable [get] |
| Returns a constraint that tests whether an object graph is serializable in xml format. More...
|
|
CollectionOrderedConstraint | Ordered [get] |
| Returns a constraint that tests whether a collection is ordered More...
|
|