IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Package NUnit.Framework.Constraints

Classes

class  AllItemsConstraint
 AllItemsConstraint applies another constraint to each item in a collection, succeeding if they all succeed. More...
 
class  AllItemsConstraintTests
 
class  AllOperator
 Represents a constraint that succeeds if all the members of a collection match a base constraint. More...
 
class  AndConstraint
 AndConstraint succeeds only if both members succeed. More...
 
class  AndConstraintTests
 
class  AndOperator
 Operator that requires both it's arguments to succeed More...
 
class  AssignableFromConstraint
 AssignableFromConstraint is used to test that an object can be assigned from a given Type. More...
 
class  AssignableFromConstraintTests
 
class  AssignableToConstraint
 AssignableToConstraint is used to test that an object can be assigned to a given Type. More...
 
class  AssignableToConstraintTests
 
class  AttributeConstraint
 AttributeConstraint tests that a specified attribute is present on a Type or other provider and that the value of the attribute satisfies some other constraint. More...
 
class  AttributeExistsConstraint
 AttributeExistsConstraint tests for the presence of a specified attribute on a Type. More...
 
class  AttributeExistsConstraintTests
 
class  AttributeOperator
 Operator that tests for the presence of a particular attribute on a type and optionally applies further tests to the attribute. More...
 
class  BinaryConstraint
 BinaryConstraint is the abstract base of all constraints that combine two other constraints in some fashion. More...
 
class  BinaryOperator
 Abstract base class for all binary operators More...
 
class  BinarySerializableConstraint
 BinarySerializableConstraint tests whether an object is serializable in binary format. More...
 
class  BinarySerializableTest
 
class  ClassWithIComparable
 
class  ClassWithIComparableOfT
 
class  CollectionConstraint
 CollectionConstraint is the abstract base class for constraints that operate on collections. More...
 
class  CollectionContainsConstraint
 CollectionContainsConstraint is used to test whether a collection contains an expected object as a member. More...
 
class  CollectionContainsConstraintTests
 
class  CollectionEqualsTests
 
class  CollectionEquivalentConstraint
 CollectionEquivalentConstraint is used to determine whether two collections are equivalent. More...
 
class  CollectionEquivalentConstraintTests
 
class  CollectionItemsEqualConstraint
 CollectionItemsEqualConstraint is the abstract base class for all collection constraints that apply some notion of item equality as a part of their operation. More...
 
class  CollectionOperator
 Abstract base for operators that indicate how to apply a constraint to items in a collection. More...
 
class  CollectionOrderedConstraint
 CollectionOrderedConstraint is used to test whether a collection is ordered. More...
 
class  CollectionOrderedConstraintTests
 
class  CollectionSubsetConstraint
 CollectionSubsetConstraint is used to determine whether one collection is a subset of another More...
 
class  CollectionSubsetConstraintTests
 
class  CollectionSupersetConstraint
 CollectionSupersetConstraint is used to determine whether one collection is a superset of another More...
 
class  CollectionSupersetConstraintTests
 
class  CollectionTally
 CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations. More...
 
class  ComparisonAdapter
 ComparisonAdapter class centralizes all comparisons of _values in NUnit, adapting to the use of any provided IComparer, IComparer{T} or Comparison{T}. More...
 
class  ComparisonConstraint
 Abstract base class for constraints that compare _values to determine if one is greater than, equal to or less than the other. More...
 
class  ComparisonConstraintTestBase
 
class  Constraint
 The Constraint class is the base of all built-in constraints within NUnit. It provides the operator overloads used to combine constraints. More...
 
class  ConstraintBuilder
 ConstraintBuilder maintains the stacks that are used in processing a ConstraintExpression. An OperatorStack is used to hold operators that are waiting for their operands to be reorganized. a ConstraintStack holds input constraints as well as the results of each operator applied. More...
 
class  ConstraintExpression
 ConstraintExpression represents a compound constraint in the process of being constructed from a series of syntactic elements. More...
 
class  ConstraintFactory
 Helper class with properties and methods that supply a number of constraints used in Asserts. More...
 
class  ConstraintOperator
 The ConstraintOperator class is used internally by a ConstraintBuilder to represent an operator that modifies or combines constraints. More...
 
class  ConstraintResult
 Contain the result of matching a Constraint against an actual value. More...
 
class  ConstraintTestBase
 
class  ConstraintTestBaseNoData
 
class  ContainsConstraint
 ContainsConstraint tests a whether a string contains a substring or a collection contains an object. It postpones the decision of which test to use until the type of the actual argument is known. This allows testing whether a string is contained in a collection or as a substring of another string using the same syntax. More...
 
class  DelayedConstraint
 Applies a delay to the match so that a match can be evaluated in the future. /summary> More...
 
class  DelayedConstraintTests
 
class  DictionaryContainsKeyConstraint
 DictionaryContainsKeyConstraint is used to test whether a dictionary contains an expected object as a key. More...
 
class  DictionaryContainsValueConstraint
 DictionaryContainsValueConstraint is used to test whether a dictionary contains an expected object as a value. More...
 
class  DisposableEnumerator< T >
 
class  EmptyCollectionConstraint
 EmptyCollectionConstraint tests whether a collection is empty. More...
 
class  EmptyConstraint
 EmptyConstraint tests a whether a string or collection is empty, postponing the decision about which test is applied until the type of the actual argument is known. More...
 
class  EmptyConstraintTest
 
class  EmptyDirectoryConstraint
 EmptyDirectoryConstraint is used to test that a directory is empty More...
 
class  EmptyDirectoryConstraintTest
 
class  EmptyStringConstraint
 EmptyStringConstraint tests whether a string is empty. More...
 
class  EmptyStringConstraintTest
 
class  EndsWithConstraint
 EndsWithConstraint can test whether a string ends with an expected substring. More...
 
class  EndsWithConstraintTests
 
class  EndsWithConstraintTestsIgnoringCase
 
class  EnumerableWithDisposeChecks< T >
 
class  EqualConstraint
 EqualConstraint is able to compare an actual value with the expected value provided in its constructor. Two objects are considered equal if both are null, or if both have the same value. NUnit has special semantics for some object types. More...
 
class  EqualConstraintResult
 The EqualConstraintResult class is tailored for formatting and displaying the result of an EqualConstraint. More...
 
class  EqualConstraintTests
 
class  EqualityAdapter
 EqualityAdapter class handles all equality comparisons that use an IEqualityComparer, IEqualityComparer{T} or a ComparisonAdapter. More...
 
class  EqualityComparerTests
 
class  EqualTests
 
class  EquatableObject
 
class  ExactCountConstraint
 ExactCountConstraint applies another constraint to each item in a collection, succeeding only if a specified number of items succeed. More...
 
class  ExactCountConstraintTests
 
class  ExactCountOperator
 Represents a constraint that succeeds if the specified count of members of a collection match a base constraint. More...
 
class  ExactTypeConstraint
 ExactTypeConstraint is used to test that an object is of the exact type provided in the constructor More...
 
class  ExactTypeConstraintTests
 
class  ExceptionTypeConstraint
 ExceptionTypeConstraint is a special version of ExactTypeConstraint used to provided detailed info about the exception thrown in an error message. More...
 
class  FalseConstraint
 FalseConstraint tests that the actual value is false More...
 
class  FalseConstraintTest
 
class  FileExistsConstraint
 FileExistsConstraint is used to determine if a file exists More...
 
class  FileOrDirectoryExistsConstraint
 FileOrDirectoryExistsConstraint is used to determine if a file or directory exists More...
 
class  FloatingPointNumerics
 Helper routines for working with floating point numbers More...
 
class  FloatingPointNumericsTests
 
class  GreaterThanConstraint
 Tests whether a value is greater than the value supplied to its constructor More...
 
class  GreaterThanConstraintTests
 
class  GreaterThanOrEqualConstraint
 Tests whether a value is greater than or equal to the value supplied to its constructor More...
 
class  GreaterThanOrEqualConstraintTests
 
interface  IConstraint
 Interface for all constraints More...
 
interface  IEquatableObject
 
class  IEquatableWithoutEqualsOverridden
 
class  InheritedEquatableObject
 
class  InstanceOfTypeConstraint
 InstanceOfTypeConstraint is used to test that an object is of the same type provided or derived from it. More...
 
class  InstanceOfTypeConstraintTests
 
class  Int32IEquatable
 
class  InternalClass
 
class  InternalWithSerializableAttributeClass
 
interface  IResolveConstraint
 The IResolveConstraint interface is implemented by all complete and resolvable constraints and expressions. More...
 
class  LessThanConstraint
 Tests whether a value is less than the value supplied to its constructor More...
 
class  LessThanConstraintTests
 
class  LessThanOrEqualConstraint
 Tests whether a value is less than or equal to the value supplied to its constructor More...
 
class  LessThanOrEqualConstraintTests
 
class  MessageWriter
 MessageWriter is the abstract base for classes that write constraint descriptions and messages in some form. The class has separate methods for writing various components of a message, allowing implementations to tailor the presentation as needed. More...
 
class  MsgUtils
 Static methods used in creating messages
 
class  MsgUtilTests
 Summary description for MsgUtilTests. More...
 
class  MultipleIEquatables
 
class  NaNConstraint
 NaNConstraint tests that the actual value is a double or float NaN More...
 
class  NaNConstraintTest
 
class  NeverEqualIEquatable
 
class  NeverEqualIEquatableWithOverriddenAlwaysTrueEquals
 
class  NoItemConstraint
 NoItemConstraint applies another constraint to each item in a collection, failing if any of them succeeds. More...
 
class  NoneOperator
 Represents a constraint that succeeds if none of the members of a collection match a base constraint. More...
 
class  NotConstraint
 NotConstraint negates the effect of some other constraint More...
 
class  NotConstraintTests
 
class  NotOperator
 Negates the test of the constraint it wraps. More...
 
class  NullConstraint
 NullConstraint tests that the actual value is null More...
 
class  NullConstraintTest
 
class  Numerics
 The Numerics class contains common operations on numeric _values. More...
 
class  NumericsTests
 
class  NUnitComparer
 NUnitComparer encapsulates NUnit's default behavior in comparing two objects. More...
 
class  NUnitComparerTests
 
class  NUnitEqualityComparer
 NUnitEqualityComparer encapsulates NUnit's handling of equality tests between objects. More...
 
class  OrConstraint
 OrConstraint succeeds if either member succeeds More...
 
class  OrConstraintTests
 
class  OrOperator
 Operator that requires at least one of it's arguments to succeed More...
 
class  PathConstraint
 PathConstraint serves as the abstract base of constraints that operate on paths and provides several helper methods. More...
 
class  PredicateConstraint< T >
 Predicate constraint wraps a Predicate in a constraint, returning success if the predicate is true. More...
 
class  PredicateConstraintTests
 
class  PrefixConstraint
 Abstract base class used for prefixes More...
 
class  PrefixOperator
 PrefixOperator takes a single constraint and modifies it's action in some way. More...
 
class  PropertyConstraint
 PropertyConstraint extracts a named property and uses its value as the actual value for a chained constraint. More...
 
class  PropertyExistsConstraint
 PropertyExistsConstraint tests that a named property exists on the object provided through Match. More...
 
class  PropertyExistsTests
 
class  PropertyTest
 
class  PropOperator
 Operator used to test for the presence of a named Property on an object and optionally apply further tests to the value of that property. More...
 
class  RangeConstraint
 RangeConstraint tests whether two _values are within a specified range. More...
 
class  RangeConstraintTest
 
class  RangeTests
 
class  RegexConstraint
 RegexConstraint can test whether a string matches the pattern provided. More...
 
class  ResolvableConstraintExpression
 ResolvableConstraintExpression is used to represent a compound constraint being constructed at a point where the last operator may either terminate the expression or may have additional qualifying constraints added to it. More...
 
class  ReusableConstraint
 ReusableConstraint wraps a constraint expression after resolving it so that it can be reused consistently. More...
 
class  ReusableConstraintTests
 
class  SameAsConstraint
 SameAsConstraint tests whether an object is identical to the object passed to its constructor More...
 
class  SameAsTest
 
class  SamePathConstraint
 Summary description for SamePathConstraint. More...
 
class  SamePathOrUnderConstraint
 SamePathOrUnderConstraint tests that one path is under another More...
 
class  SamePathOrUnderTest_Linux
 
class  SamePathOrUnderTest_Windows
 
class  SamePathTest_Linux
 
class  SamePathTest_Windows
 Summary description for PathConstraintTests. More...
 
class  SelfResolvingOperator
 Abstract base class for operators that are able to reduce to a constraint whether or not another syntactic element follows. More...
 
class  SomeItemsConstraint
 SomeItemsConstraint applies another constraint to each item in a collection, succeeding if any of them succeeds. More...
 
class  SomeOperator
 Represents a constraint that succeeds if any of the members of a collection match a base constraint. More...
 
class  StartsWithConstraint
 StartsWithConstraint can test whether a string starts with an expected substring. More...
 
class  StartsWithConstraintTests
 
class  StartsWithConstraintTestsIgnoringCase
 
class  StringConstraint
 StringConstraint is the abstract base for constraints that operate on strings. It supports the IgnoreCase modifier for string operations. More...
 
class  StringConstraintTests
 
class  SubPathConstraint
 SubPathConstraint tests that the actual path is under the expected path More...
 
class  SubPathTest_Linux
 
class  SubPathTest_Windows
 
class  SubstringConstraint
 SubstringConstraint can test whether a string contains the expected substring. More...
 
class  SubstringConstraintTests
 
class  SubstringConstraintTestsIgnoringCase
 
class  ThrowsConstraint
 ThrowsConstraint is used to test the exception thrown by a delegate by applying a constraint to it. More...
 
class  ThrowsConstraintTest_ExactType
 
class  ThrowsConstraintTest_InstanceOfType
 
class  ThrowsConstraintTest_WithConstraint
 
class  ThrowsConstraintTestBase
 
class  ThrowsExceptionConstraint
 ThrowsExceptionConstraint tests that an exception has been thrown, without any further tests. More...
 
class  ThrowsExceptionConstraintTests
 
class  ThrowsNothingConstraint
 ThrowsNothingConstraint tests that a delegate does not throw an exception. More...
 
class  ThrowsOperator
 Operator that tests that an exception is thrown and optionally applies further tests to the exception. More...
 
class  Tolerance
 The Tolerance class generalizes the notion of a tolerance within which an equality test succeeds. Normally, it is used with numeric types, but it can be used with any type that supports taking a difference between two objects and comparing that difference to a value. More...
 
class  ToStringTests
 
class  TrueConstraint
 TrueConstraint tests that the actual value is true More...
 
class  TrueConstraintTest
 
class  TypeConstraint
 TypeConstraint is the abstract base for constraints that take a Type as their expected value. More...
 
class  UniqueItemsConstraint
 UniqueItemsConstraint tests whether all the items in a collection are unique. More...
 
class  UniqueItemsTests
 
class  WithOperator
 Represents a constraint that simply wraps the constraint provided as an argument, without any further functionality, but which modifies the order of evaluation because of its precedence. More...
 
class  XmlSerializableConstraint
 XmlSerializableConstraint tests whether an object is serializable in xml format. More...
 
class  XmlSerializableTest
 

Enumerations

enum  ConstraintStatus { ConstraintStatus.Unknown, ConstraintStatus.Success, ConstraintStatus.Failure, ConstraintStatus.Error }
 ConstraintStatus represents the status of a ConstraintResult returned by a Constraint being applied to an actual value. More...
 
enum  ToleranceMode { ToleranceMode.Unset, ToleranceMode.Linear, ToleranceMode.Percent, ToleranceMode.Ulps }
 Modes in which the tolerance value for a comparison can be interpreted. More...
 

Functions

delegate TActual ActualValueDelegate< TActual > ()
 Delegate used to delay evaluation of the actual value to be used in evaluating a constraint More...
 

Enumeration Type Documentation

ConstraintStatus represents the status of a ConstraintResult returned by a Constraint being applied to an actual value.

Enumerator
Unknown 

The status has not yet been set

Success 

The constraint succeeded

Failure 

The constraint failed

Error 

An error occured in applying the constraint (reserved for future use)

Modes in which the tolerance value for a comparison can be interpreted.

Enumerator
Unset 

The tolerance was created with a value, without specifying how the value would be used. This is used to prevent setting the mode more than once and is generally changed to Linear upon execution of the test.

Linear 

The tolerance is used as a numeric range within which two compared _values are considered to be equal.

Percent 

Interprets the tolerance as the percentage by which the two compared _values my deviate from each other.

Ulps 

Compares two _values based in their distance in representable numbers.

Function Documentation

delegate TActual NUnit.Framework.Constraints.ActualValueDelegate< TActual > ( )

Delegate used to delay evaluation of the actual value to be used in evaluating a constraint