IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
ConstraintExpression represents a compound constraint in the process of being constructed from a series of syntactic elements. More...
Public Member Functions | |
ConstraintExpression () | |
Initializes a new instance of the ConstraintExpression class. More... | |
ConstraintExpression (ConstraintBuilder builder) | |
Initializes a new instance of the ConstraintExpression class passing in a ConstraintBuilder, which may be pre-populated. More... | |
override string | ToString () |
Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression. More... | |
ConstraintExpression | Append (ConstraintOperator op) |
Appends an operator to the expression and returns the resulting expression itself. More... | |
ResolvableConstraintExpression | Append (SelfResolvingOperator op) |
Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression. More... | |
Constraint | Append (Constraint constraint) |
Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built. Note that the constraint is not reduced at this time. For example, if there is a NotOperator on the stack we don't reduce and return a NotConstraint. The original constraint must be returned because it may support modifiers that are yet to be applied. More... | |
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... | |
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... | |
Constraint | Matches (IResolveConstraint constraint) |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. More... | |
Constraint | Matches< TActual > (Predicate< TActual > predicate) |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. 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... | |
ContainsConstraint | Contain (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... | |
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... | |
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... | |
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... | |
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 the 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... | |
Protected Attributes | |
ConstraintBuilder | builder |
The ConstraintBuilder holding the elements recognized so far More... | |
Properties | |
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... | |
ConstraintExpression | With [get] |
With is currently a NOP - reserved for future use. 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... | |
Constraint | Exist [get] |
Returns a constraint that succeeds if the value is a file or directory and it exists. More... | |
ConstraintExpression represents a compound constraint in the process of being constructed from a series of syntactic elements.
Individual elements are appended to the expression as they are reorganized. When a constraint is appended, it is returned as the value of the operation so that modifiers may be applied. However, any partially built expression is attached to the constraint for later resolution. When an operator is appended, the partial expression is returned. If it's a self-resolving operator, then a ResolvableConstraintExpression is returned.
|
inline |
Initializes a new instance of the ConstraintExpression class.
|
inline |
Initializes a new instance of the ConstraintExpression class passing in a ConstraintBuilder, which may be pre-populated.
builder | The builder. |
|
inline |
Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression.
References NUnit.Framework.Constraints.ConstraintBuilder.Resolve().
|
inline |
Appends an operator to the expression and returns the resulting expression itself.
References NUnit.Framework.Constraints.ConstraintBuilder.Append().
|
inline |
Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.
References NUnit.Framework.Constraints.ConstraintBuilder.Append().
|
inline |
Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built. Note that the constraint is not reduced at this time. For example, if there is a NotOperator on the stack we don't reduce and return a NotConstraint. The original constraint must be returned because it may support modifiers that are yet to be applied.
References NUnit.Framework.Constraints.ConstraintBuilder.Append().
|
inline |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed.
Referenced by NUnit.Framework.Has.Exactly().
|
inline |
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.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Has.Property(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOfAndConstraint(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionWithConstraint(), NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfAndConstraint(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfWithConstraint().
|
inline |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
Referenced by NUnit.Framework.Has.Attribute().
|
inline |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
|
inline |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.
References NUnit.Framework.Constraints.IResolveConstraint.Resolve().
Referenced by NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.CanMatchCustomConstraint(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.CanMatchCustomConstraintAfterPrefix(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.CanMatchCustomConstraintsUnderAndOperator(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.CanMatchLambda(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.CanMatchPredicate(), and NUnit.Framework.Constraints.ConstraintFactory.DoesNotMatch().
|
inline |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.
|
inline |
Returns a constraint that tests two items for equality
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), NUnit.Framework.CollectionAssert.AreNotEqual(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Tests.AssertSyntaxTests.EqualIgnoringCaseTests(), NUnit.Framework.Tests.AssertSyntaxTests.EqualityTests(), NUnit.Framework.Tests.AssertSyntaxTests.EqualityTestsWithTolerance(), NUnit.Framework.Syntax.ThrowsTests.LambdaThrowsExceptionWithMessage(), NUnit.Framework.Constraints.NotConstraintTests.NotHonorsIgnoreCaseUsingPrefixNotation(), NUnit.Framework.Constraints.NotConstraintTests.NotHonorsTolerance(), NUnit.Framework.Tests.AssertSyntaxTests.NotTests(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestGlobalDefaultTolerance_Failure(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOfAndConstraint(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionWithConstraint(), NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfAndConstraint(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfWithConstraint().
|
inline |
Returns a constraint that tests that two references are the same object
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests().
|
inline |
Returns a constraint that tests whether the actual value is greater than the supplied argument
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Syntax.MixedOperatorOverrides.ComplexTests(), NUnit.Framework.Tests.AssertSyntaxTests.ComplexTests(), NUnit.Framework.Tests.AssertSyntaxTests.NoItemTests(), and NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests().
|
inline |
Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument
|
inline |
Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument
|
inline |
Returns a constraint that tests whether the actual value is less than the supplied argument
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Syntax.MixedOperatorOverrides.ComplexTests(), NUnit.Framework.Tests.AssertSyntaxTests.ComplexTests(), and NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests().
|
inline |
Returns a constraint that tests whether the actual value is less than or equal to the supplied argument
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests().
|
inline |
Returns a constraint that tests whether the actual value is less than or equal to the supplied argument
|
inline |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.ExactTypeTests(), NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.FailsWhenKeyIsMissing(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.FailsWhenValueIsMissing(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOf(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOfAndConstraint().
|
inline |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
|
inline |
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
Referenced by NUnit.Framework.CollectionAssert.AllItemsAreInstancesOfType(), NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.AssertSyntaxTests.InstanceOfTests(), NUnit.Framework.Tests.AssertSyntaxTests.NoItemTests(), NUnit.Framework.Tests.AssertSyntaxTests.SomeItemTests(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionInstanceOf().
|
inline |
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
|
inline |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AssignableFromTypeTests().
|
inline |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
|
inline |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
|
inline |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
|
inline |
Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument.
Referenced by NUnit.Framework.CollectionAssert.AreNotEquivalent(), and NUnit.Framework.Tests.AssertSyntaxTests.CollectionEquivalenceTests().
|
inline |
Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument.
Referenced by NUnit.Framework.CollectionAssert.IsNotSubsetOf(), and NUnit.Framework.Tests.AssertSyntaxTests.SubsetTests().
|
inline |
Returns a constraint that tests whether the actual value is a superset of the collection supplied as an argument.
Referenced by NUnit.Framework.CollectionAssert.IsNotSupersetOf().
|
inline |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), and NUnit.Framework.CollectionAssert.DoesNotContain().
|
inline |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModeMustFollowTolerance(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModesCanOnlyBeUsedOnce(), and NUnit.Framework.Tests.Constraints.ToleranceTests.TestNumericToleranceRequired().
|
inline |
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.
|
inline |
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.
Referenced by NUnit.Framework.StringAssert.DoesNotContain().
|
inline |
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), and NUnit.Framework.Tests.AssertSyntaxTests.SubstringTests().
|
inline |
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
Referenced by NUnit.Framework.Constraints.ConstraintFactory.DoesNotContain().
|
inline |
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
Referenced by NUnit.Framework.StringAssert.DoesNotStartWith().
|
inline |
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Constraints.ConstraintFactory.DoesNotStartWith(), NUnit.Framework.Tests.AssertSyntaxTests.NoItemTests(), and NUnit.Framework.Tests.AssertSyntaxTests.SomeItemTests().
|
inline |
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.StartsWithTests().
|
inline |
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
Referenced by NUnit.Framework.StringAssert.DoesNotEndWith().
|
inline |
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
Referenced by NUnit.Framework.Constraints.ConstraintFactory.DoesNotEndWith().
|
inline |
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.EndsWithTests().
|
inline |
Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.
|
inline |
Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.
|
inline |
Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.RegularExpressionTests().
|
inline |
Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization.
|
inline |
Returns a constraint that tests whether the path provided is the a subpath of the expected path after canonicalization.
|
inline |
Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization.
|
inline |
Returns a constraint that tests whether the actual value falls within a specified range.
|
protected |
The ConstraintBuilder holding the elements recognized so far
|
get |
Returns a ConstraintExpression that negates any following constraint.
Referenced by NUnit.Framework.CollectionAssert.AllItemsAreNotNull(), NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Constraints.ConstraintFactory.DoesNotContain(), NUnit.Framework.Constraints.ConstraintFactory.DoesNotEndWith(), NUnit.Framework.Constraints.ConstraintFactory.DoesNotMatch(), NUnit.Framework.Constraints.ConstraintFactory.DoesNotStartWith(), NUnit.Framework.Tests.AssertSyntaxTests.NotTests(), and NUnit.Framework.Tests.AssertSyntaxTests.SomeItemTests().
|
get |
Returns a ConstraintExpression that negates any following constraint.
|
get |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed.
|
get |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds.
|
get |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail.
|
get |
Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), and NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests().
|
get |
Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested.
Referenced by NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty().
|
get |
Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested.
Referenced by NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Framework.Syntax.ThrowsTests.LambdaThrowsExceptionWithMessage(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModeMustFollowTolerance(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModesCanOnlyBeUsedOnce(), and NUnit.Framework.Tests.Constraints.ToleranceTests.TestNumericToleranceRequired().
|
get |
Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested.
|
get |
With is currently a NOP - reserved for future use.
Referenced by NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionWithConstraint().
|
get |
Returns a constraint that tests for null
Referenced by NUnit.Framework.CollectionAssert.AllItemsAreNotNull(), NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Syntax.MixedOperatorOverrides.ComplexTests(), NUnit.Framework.Tests.AssertSyntaxTests.ComplexTests(), NUnit.Framework.Tests.AssertSyntaxTests.IsNotNull(), NUnit.Framework.Assert.IsNotNull(), NUnit.Framework.Tests.AssertSyntaxTests.NoItemTests(), NUnit.Framework.Assert.NotNull(), NUnit.Framework.Tests.AssertSyntaxTests.NotTests(), and NUnit.Framework.Tests.AssertSyntaxTests.SomeItemTests().
|
get |
Returns a constraint that tests for True
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.NotTests().
|
get |
Returns a constraint that tests for False
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.NotTests().
|
get |
Returns a constraint that tests for a positive value
|
get |
Returns a constraint that tests for a negative value
|
get |
Returns a constraint that tests for NaN
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.NotTests().
|
get |
Returns a constraint that tests for empty
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.EmptyCollectionTests(), NUnit.Framework.Tests.AssertSyntaxTests.EmptyStringTests(), and NUnit.Framework.Assert.IsNotEmpty().
|
get |
Returns a constraint that tests whether a collection contains all unique items.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests().
|
get |
Returns a constraint that tests whether an object graph is serializable in binary format.
|
get |
Returns a constraint that tests whether an object graph is serializable in xml format.
|
get |
Returns a constraint that tests whether a collection is ordered
|
get |
Returns a constraint that succeeds if the value is a file or directory and it exists.
Referenced by NUnit.Framework.Tests.Constraints.FileOrDirectoryExistsConstraintTests.FailsWhenDirectoryInfoDoesNotExist(), NUnit.Framework.Tests.Constraints.FileOrDirectoryExistsConstraintTests.FailsWhenDirectoryStringDoesNotExist(), NUnit.Framework.Tests.Constraints.FileOrDirectoryExistsConstraintTests.FailsWhenFileInfoDoesNotExist(), NUnit.Framework.Tests.Constraints.FileOrDirectoryExistsConstraintTests.FailsWhenFileStringDoesNotExist(), and NUnit.Framework.Tests.Constraints.FileOrDirectoryExistsConstraintTests.SetUp().