diff --git a/dependencies/NUnit/NUnit-2.5.7.10213.msi b/dependencies/NUnit/NUnit-2.5.7.10213.msi deleted file mode 100644 index 5113ef8234..0000000000 Binary files a/dependencies/NUnit/NUnit-2.5.7.10213.msi and /dev/null differ diff --git a/dependencies/NUnit/NUnit-2.5.9.10348.msi b/dependencies/NUnit/NUnit-2.5.9.10348.msi new file mode 100644 index 0000000000..78667db98d Binary files /dev/null and b/dependencies/NUnit/NUnit-2.5.9.10348.msi differ diff --git a/dependencies/NUnit/lib/nunit.framework.dll b/dependencies/NUnit/lib/nunit.framework.dll index 639dbb0dce..875e098420 100644 Binary files a/dependencies/NUnit/lib/nunit.framework.dll and b/dependencies/NUnit/lib/nunit.framework.dll differ diff --git a/dependencies/NUnit/lib/nunit.framework.xml b/dependencies/NUnit/lib/nunit.framework.xml index e67b2cdc84..1cccec3b3e 100644 --- a/dependencies/NUnit/lib/nunit.framework.xml +++ b/dependencies/NUnit/lib/nunit.framework.xml @@ -4,2314 +4,2280 @@ nunit.framework - + - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. + Attribute used to apply a category to a test - + - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. + The name of the category - + - The IConstraintExpression interface is implemented by all - complete and resolvable constraints and expressions. + Construct attribute for a given category based on + a name. The name may not contain the characters ',', + '+', '-' or '!'. However, this is not checked in the + constructor since it would cause an error to arise at + as the test was loaded without giving a clear indication + of where the problem is located. The error is handled + in NUnitFramework.cs by marking the test as not + runnable. + The name of the category - + - Return the top-level constraint for this expression + Protected constructor uses the Type name as the name + of the category. - - + - Static UnsetObject used to detect derived constraints - failing to set the actual value. + The name of the category - + - The actual value being tested against a constraint + Used to mark a field for use as a datapoint when executing a theory + within the same fixture that requires an argument of the field's Type. - + - The display name of this Constraint for use by ToString() + Used to mark an array as containing a set of datapoints to be used + executing a theory within the same fixture that requires an argument + of the Type of the array elements. - + - Argument fields used by ToString(); + Attribute used to provide descriptive text about a + test case or fixture. - + - The builder holding this constraint + Construct the attribute + Text describing the test - + - Construct a constraint with no arguments + Gets the test description - + - Construct a constraint with one argument + Enumeration indicating how the expected message parameter is to be used - + + Expect an exact match + + + Expect a message containing the parameter string + + + Match the regular expression provided as a parameter + + + Expect a message that starts with the parameter string + + - Construct a constraint with two arguments + ExpectedExceptionAttribute + - + - Sets the ConstraintBuilder holding this constraint + Constructor for a non-specific exception - + - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the constraint and the actual value to the writer, which - then displays the constraint description and the value. - - Constraints that need to provide additional details, - such as where the error occured can override this. + Constructor for a given type of exception - The MessageWriter on which to display the message + The type of the expected exception - + - Test whether the constraint is satisfied by a given value + Constructor for a given exception name - The value to be tested - True for success, false for failure + The full name of the expected exception - + - Test whether the constraint is satisfied by an - ActualValueDelegate that returns the value to be tested. - The default implementation simply evaluates the delegate - but derived classes may override it to provide for delayed - processing. + Gets or sets the expected exception type - An ActualValueDelegate - True for success, false for failure - + - Test whether the constraint is satisfied by a given reference. - The default implementation simply dereferences the value but - derived classes may override it to provide for delayed processing. + Gets or sets the full Type name of the expected exception - A reference to the value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Gets or sets the expected message text - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Gets or sets the user message displayed in case of failure - The writer on which the actual value is displayed - + - Default override of ToString returns the constraint DisplayName - followed by any arguments within angle brackets. + Gets or sets the type of match to be performed on the expected message - - + - Returns the string representation of this constraint + Gets the name of a method to be used as an exception handler - + - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. + ExplicitAttribute marks a test or test fixture so that it will + only be run if explicitly executed from the gui or command line + or if it is included by use of a filter. The test will not be + run simply because an enclosing suite is run. - + - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. + Default constructor - + - This operator creates a constraint that is satisfied if the - argument constraint is not satisfied. + Constructor with a reason + The reason test is marked explicit - + - Returns a DelayedConstraint with the specified delay time. + The reason test is marked explicit - The delay in milliseconds. - - + - Returns a DelayedConstraint with the specified delay time - and polling interval. + Attribute used to mark a test that is to be ignored. + Ignored tests result in a warning message when the + tests are run. - The delay in milliseconds. - The interval at which to test the constraint. - - + - The display name of this Constraint for use by ToString(). - The default value is the name of the constraint with - trailing "Constraint" removed. Derived classes may set - this to another name in their constructors. + Constructs the attribute without giving a reason + for ignoring the test. - + - Returns a ConstraintExpression by appending And - to the current constraint. + Constructs the attribute giving a reason for ignoring the test + The reason for ignoring the test - + - Returns a ConstraintExpression by appending And - to the current constraint. + The reason for ignoring a test - + - Returns a ConstraintExpression by appending Or - to the current constraint. + Abstract base for Attributes that are used to include tests + in the test run based on environmental settings. - + - Class used to detect any derived constraints - that fail to set the actual value in their - Matches override. + Constructor with no included items specified, for use + with named property syntax. - + - The first constraint being combined + Constructor taking one or more included items + Comma-delimited list of included items - + - The second constraint being combined + Name of the item that is needed in order for + a test to run. Multiple itemss may be given, + separated by a comma. - + - Construct a BinaryConstraint from two other constraints + Name of the item to be excluded. Multiple items + may be given, separated by a comma. - The first constraint - The second constraint - + - AndConstraint succeeds only if both members succeed. + The reason for including or excluding the test - + - Create an AndConstraint from two other constraints + PlatformAttribute is used to mark a test fixture or an + individual method as applying to a particular platform only. - The first constraint - The second constraint - + - Apply both member constraints to an actual value, succeeding - succeeding only if both of them succeed. + Constructor with no platforms specified, for use + with named property syntax. - The actual value - True if the constraints both succeeded - + - Write a description for this contraint to a MessageWriter + Constructor taking one or more platforms - The MessageWriter to receive the description + Comma-deliminted list of platforms - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + CultureAttribute is used to mark a test fixture or an + individual method as applying to a particular Culture only. - The writer on which the actual value is displayed - + - OrConstraint succeeds if either member succeeds + Constructor with no cultures specified, for use + with named property syntax. - + - Create an OrConstraint from two other constraints + Constructor taking one or more cultures - The first constraint - The second constraint + Comma-deliminted list of cultures - + - Apply the member constraints to an actual value, succeeding - succeeding as soon as one of them succeeds. + Marks a test to use a combinatorial join of any argument data + provided. NUnit will create a test case for every combination of + the arguments provided. This can result in a large number of test + cases and so should be used judiciously. This is the default join + type, so the attribute need not be used except as documentation. - The actual value - True if either constraint succeeded - + - Write a description for this contraint to a MessageWriter + PropertyAttribute is used to attach information to a test as a name/value pair.. - The MessageWriter to receive the description - + - CollectionConstraint is the abstract base class for - constraints that operate on collections. + Construct a PropertyAttribute with a name and string value + The name of the property + The property value - + - Construct an empty CollectionConstraint + Construct a PropertyAttribute with a name and int value + The name of the property + The property value - + - Construct a CollectionConstraint + Construct a PropertyAttribute with a name and double value - + The name of the property + The property value - + - Determines whether the specified enumerable is empty. + Constructor for derived classes that set the + property dictionary directly. - The enumerable. - - true if the specified enumerable is empty; otherwise, false. - - + - Test whether the constraint is satisfied by a given value + Constructor for use by derived classes that use the + name of the type as the property name. Derived classes + must ensure that the Type of the property value is + a standard type supported by the BCL. Any custom + types will cause a serialization Exception when + in the client. - The value to be tested - True for success, false for failure - + - Protected method to be implemented by derived classes + Gets the property dictionary for this attribute - - - + - CollectionItemsEqualConstraint is the abstract base class for all - collection constraints that apply some notion of item equality - as a part of their operation. + Default constructor - + - Construct an empty CollectionConstraint + Marks a test to use pairwise join of any argument data provided. + NUnit will attempt too excercise every pair of argument values at + least once, using as small a number of test cases as it can. With + only two arguments, this is the same as a combinatorial join. - + - Construct a CollectionConstraint + Default constructor - - + - Flag the constraint to use the supplied IComparer object. + Marks a test to use a sequential join of any argument data + provided. NUnit will use arguements for each parameter in + sequence, generating test cases up to the largest number + of argument values provided and using null for any arguments + for which it runs out of values. Normally, this should be + used with the same number of arguments for each parameter. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + Default constructor - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied Comparison object. + Summary description for MaxTimeAttribute. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IEqualityComparer object. + Construct a MaxTimeAttribute, given a time in milliseconds. - The IComparer object to use. - Self. + The maximum elapsed time in milliseconds - + - Flag the constraint to use the supplied IEqualityComparer object. + RandomAttribute is used to supply a set of random values + to a single parameter of a parameterized test. - The IComparer object to use. - Self. - + - Compares two collection members for equality + ValuesAttribute is used to provide literal arguments for + an individual parameter of a test. - + - Return a new CollectionTally for use in making tests + Abstract base class for attributes that apply to parameters + and supply data for the parameter. - The collection to be included in the tally - + - Flag the constraint to ignore case and return self. + Gets the data to be provided to the specified parameter - + - EmptyCollectionConstraint tests whether a collection is empty. + The collection of data to be returned. Must + be set by any derived attribute classes. + We use an object[] so that the individual + elements may have their type changed in GetData + if necessary. - + - Check that the collection is empty + Construct with one argument - - + - + - Write the constraint description to a MessageWriter + Construct with two arguments - + + - + - UniqueItemsConstraint tests whether all the items in a - collection are unique. + Construct with three arguments + + + - + - Check that all items are unique. + Construct with an array of arguments - - + - + - Write a description of this constraint to a MessageWriter + Get the collection of values to be used as arguments - - + - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. + Construct a set of doubles from 0.0 to 1.0, + specifying only the count. + - + - Construct a CollectionContainsConstraint + Construct a set of doubles from min to max - + + + - + - Test whether the expected item is contained in the collection + Construct a set of ints from min to max - - + + + - + - Write a descripton of the constraint to a MessageWriter + Get the collection of values to be used as arguments - - + - CollectionEquivalentCOnstraint is used to determine whether two - collections are equivalent. + RangeAttribute is used to supply a range of values to an + individual parameter of a parameterized test. - + - Construct a CollectionEquivalentConstraint + Construct a range of ints using default step of 1 - + + - + - Test whether two collections are equivalent + Construct a range of ints specifying the step size - - + + + - + - Write a description of this constraint to a MessageWriter + Construct a range of longs - + + + - + - CollectionSubsetConstraint is used to determine whether - one collection is a subset of another + Construct a range of doubles + + + - + - Construct a CollectionSubsetConstraint + Construct a range of floats - The collection that the actual value is expected to be a subset of + + + - + - Test whether the actual collection is a subset of - the expected collection provided. + RepeatAttribute may be applied to test case in order + to run it multiple times. - - - + - Write a description of this constraint to a MessageWriter + Construct a RepeatAttribute - + The number of times to run the test - + - CollectionOrderedConstraint is used to test whether a collection is ordered. + RequiredAddinAttribute may be used to indicate the names of any addins + that must be present in order to run some or all of the tests in an + assembly. If the addin is not loaded, the entire assembly is marked + as NotRunnable. - + - Construct a CollectionOrderedConstraint + Initializes a new instance of the class. + The required addin. - + - Modifies the constraint to use an IComparer and returns self. + Gets the name of required addin. + The required addin name. - + - Modifies the constraint to use an IComparer<T> and returns self. + Summary description for SetCultureAttribute. - + - Modifies the constraint to use a Comparison<T> and returns self. + Construct given the name of a culture + - + - Modifies the constraint to test ordering by the value of - a specified property and returns self. + Summary description for SetUICultureAttribute. - + - Test whether the collection is ordered + Construct given the name of a culture - - + - + - Write a description of the constraint to a MessageWriter + Attribute used to mark a class that contains one-time SetUp + and/or TearDown methods that apply to all the tests in a + namespace or an assembly. - - + - Returns the string representation of the constraint. + SetUpFixtureAttribute is used to identify a SetUpFixture - - + - If used performs a reverse comparison + Attribute used to mark a static (shared in VB) property + that returns a list of tests. - + - Abstract base class for constraints that compare values to - determine if one is greater than, equal to or less than - the other. + Attribute used to identify a method that is called + immediately after each test is run. The method is + guaranteed to be called, even if an exception is thrown. - + - The value against which a comparison is to be made + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + - + - If true, less than returns success + Descriptive text for this test - + - if true, equal returns success + TestCaseAttribute is used to mark parameterized test cases + and provide them with their arguments. - + - if true, greater than returns success + The ITestCaseData interface is implemented by a class + that is able to return complete testcases for use by + a parameterized test method. + + NOTE: This interface is used in both the framework + and the core, even though that results in two different + types. However, sharing the source code guarantees that + the various implementations will be compatible and that + the core is able to reflect successfully over the + framework implementations of ITestCaseData. - + - The predicate used as a part of the description + Gets the argument list to be provided to the test - + - ComparisonAdapter to be used in making the comparison + Gets the expected result - + - Initializes a new instance of the class. + Gets the expected exception Type - The value against which to make a comparison. - if set to true less succeeds. - if set to true equal succeeds. - if set to true greater succeeds. - String used in describing the constraint. - + - Test whether the constraint is satisfied by a given value + Gets the FullName of the expected exception - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Gets the name to be used for the test - The writer on which the description is displayed - + - Modifies the constraint to use an IComparer and returns self + Gets the description of the test - + - Modifies the constraint to use an IComparer<T> and returns self + Gets a value indicating whether this is ignored. + true if ignored; otherwise, false. - + - Modifies the constraint to use a Comparison<T> and returns self + Gets the ignore reason. + The ignore reason. - + - Tests whether a value is greater than the value supplied to its constructor + Construct a TestCaseAttribute with a list of arguments. + This constructor is not CLS-Compliant + - + - Initializes a new instance of the class. + Construct a TestCaseAttribute with a single argument - The expected value. + - + - Tests whether a value is greater than or equal to the value supplied to its constructor + Construct a TestCaseAttribute with a two arguments + + - + - Initializes a new instance of the class. + Construct a TestCaseAttribute with a three arguments - The expected value. + + + - + - Tests whether a value is less than the value supplied to its constructor + Gets the list of arguments to a test case - + - Initializes a new instance of the class. + Gets or sets the expected result. - The expected value. + The result. - + - Tests whether a value is less than or equal to the value supplied to its constructor + Gets or sets the expected exception. + The expected exception. - + - Initializes a new instance of the class. + Gets or sets the name the expected exception. - The expected value. + The expected name of the exception. - + - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint + Gets or sets the expected message of the expected exception + The expected message of the exception. - + - 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 reognized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. + Gets or sets the type of match to be performed on the expected message - + - Initializes a new instance of the class. + Gets or sets the description. + The description. - + - Appends the specified operator to the expression by first - reducing the operator stack and then pushing the new - operator on the stack. + Gets or sets the name of the test. - The operator to push. + The name of the test. - + - Appends the specified constraint to the expresson by pushing - it on the constraint stack. + Gets or sets the ignored status of the test - The constraint to push. - + - Sets the top operator right context. + Gets or sets the ignored status of the test - The right context. - + - Reduces the operator stack until the topmost item - precedence is greater than or equal to the target precedence. + Gets the ignore reason. - The target precedence. + The ignore reason. - + - Resolves this instance, returning a Constraint. If the builder - is not currently in a resolvable state, an exception is thrown. + FactoryAttribute indicates the source to be used to + provide test cases for a test method. - The resolved constraint - + - Gets a value indicating whether this instance is resolvable. + Construct with the name of the factory - for use with languages + that don't support params arrays. - - true if this instance is resolvable; otherwise, false. - + An array of the names of the factories that will provide data - + - OperatorStack is a type-safe stack for holding ConstraintOperators + Construct with a Type and name - for use with languages + that don't support params arrays. + The Type that will provide data + The name of the method, property or field that will provide data - + - Initializes a new instance of the class. + The name of a the method, property or fiend to be used as a source - The builder. - + - Pushes the specified operator onto the stack. + A Type to be used as a source - The op. - + + + [TestFixture] + public class ExampleClass + {} + + + - Pops the topmost operator from the stack. + Default constructor - - + - Gets a value indicating whether this is empty. + Construct with a object[] representing a set of arguments. + In .NET 2.0, the arguments may later be separated into + type arguments and constructor arguments. - true if empty; otherwise, false. + - + - Gets the topmost operator without modifying the stack. + Descriptive text for this fixture - The top. - + - ConstraintStack is a type-safe stack for holding Constraints + The arguments originally provided to the attribute - + - Initializes a new instance of the class. + Gets or sets a value indicating whether this should be ignored. - The builder. + true if ignore; otherwise, false. - + - Pushes the specified constraint. As a side effect, - the constraint's builder field is set to the - ConstraintBuilder owning this stack. + Gets or sets the ignore reason. May set Ignored as a side effect. - The constraint. + The ignore reason. - + - Pops this topmost constrait from the stack. - As a side effect, the constraint's builder - field is set to null. + Get or set the type arguments. If not set + explicitly, any leading arguments that are + Types are taken as type arguments. - - + - Gets a value indicating whether this is empty. + Attribute used to identify a method that is + called before any tests in a fixture are run. - true if empty; otherwise, false. - + - Gets the topmost constraint without modifying the stack. + Attribute used to identify a method that is called after + all the tests in a fixture have run. The method is + guaranteed to be called, even if an exception is thrown. - The topmost constraint - + - 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. + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + - + - Test whether the constraint is satisfied by a given value + WUsed on a method, marks the test with a timeout value in milliseconds. + The test will be run in a separate thread and is cancelled if the timeout + is exceeded. Used on a method or assembly, sets the default timeout + for all contained test methods. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Construct a TimeoutAttribute given a time in milliseconds - The writer on which the description is displayed + The timeout value in milliseconds - + - 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. + Marks a test that must run in the STA, causing it + to run in a separate thread if necessary. + + On methods, you may also use STAThreadAttribute + to serve the same purpose. - + - If true, strings in error messages will be clipped + Construct a RequiresSTAAttribute - + - NUnitEqualityComparer used to test equality. + Marks a test that must run in the MTA, causing it + to run in a separate thread if necessary. + + On methods, you may also use MTAThreadAttribute + to serve the same purpose. - + - Initializes a new instance of the class. + Construct a RequiresMTAAttribute - The expected value. - + - Flag the constraint to use a tolerance when determining equality. + Marks a test that must run on a separate thread. - Tolerance value to be used - Self. - + - Flag the constraint to use the supplied IComparer object. + Construct a RequiresThreadAttribute - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + Construct a RequiresThreadAttribute, specifying the apartment - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + ValueSourceAttribute indicates the source to be used to + provide data for one parameter of a test method. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied Comparison object. + Construct with the name of the factory - for use with languages + that don't support params arrays. - The IComparer object to use. - Self. + The name of the data source to be used - + - Flag the constraint to use the supplied IEqualityComparer object. + Construct with a Type and name - for use with languages + that don't support params arrays. - The IComparer object to use. - Self. + The Type that will provide data + The name of the method, property or field that will provide data - + - Flag the constraint to use the supplied IEqualityComparer object. + The name of a the method, property or fiend to be used as a source - The IComparer object to use. - Self. - + - Test whether the constraint is satisfied by a given value + A Type to be used as a source - The value to be tested - True for success, false for failure - + - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. + AttributeExistsConstraint tests for the presence of a + specified attribute on a Type. - The MessageWriter to write to - + - Write description of this constraint + The Constraint class is the base of all built-in constraints + within NUnit. It provides the operator overloads used to combine + constraints. - The MessageWriter to write to - + - Display the failure information for two collections that did not match. + The IConstraintExpression interface is implemented by all + complete and resolvable constraints and expressions. - The MessageWriter on which to display - The expected collection. - The actual collection - The depth of this failure in a set of nested collections - - - Displays a single line showing the types and sizes of the expected - and actual collections or arrays. If both are identical, the value is - only shown once. - - The MessageWriter on which to display - The expected collection or array - The actual collection or array - The indentation level for the message line - - - - Displays a single line showing the point in the expected and actual - arrays at which the comparison failed. If the arrays have different - structures or dimensions, both values are shown. - - The MessageWriter on which to display - The expected array - The actual array - Index of the failure point in the underlying collections - The indentation level for the message line - - + - Flag the constraint to ignore case and return self. + Return the top-level constraint for this expression + - + - Flag the constraint to suppress string clipping - and return self. + Static UnsetObject used to detect derived constraints + failing to set the actual value. - + - Flag the constraint to compare arrays as collections - and return self. + The actual value being tested against a constraint - + - Switches the .Within() modifier to interpret its tolerance as - a distance in representable values (see remarks). + The display name of this Constraint for use by ToString() - Self. - - Ulp stands for "unit in the last place" and describes the minimum - amount a given value can change. For any integers, an ulp is 1 whole - digit. For floating point values, the accuracy of which is better - for smaller numbers and worse for larger numbers, an ulp depends - on the size of the number. Using ulps for comparison of floating - point results instead of fixed tolerances is safer because it will - automatically compensate for the added inaccuracy of larger numbers. - - + - Switches the .Within() modifier to interpret its tolerance as - a percentage that the actual values is allowed to deviate from - the expected value. + Argument fields used by ToString(); - Self - + - Causes the tolerance to be interpreted as a TimeSpan in days. + The builder holding this constraint - Self - + - Causes the tolerance to be interpreted as a TimeSpan in hours. + Construct a constraint with no arguments - Self - + - Causes the tolerance to be interpreted as a TimeSpan in minutes. + Construct a constraint with one argument - Self - + - Causes the tolerance to be interpreted as a TimeSpan in seconds. + Construct a constraint with two arguments - Self - + - Causes the tolerance to be interpreted as a TimeSpan in milliseconds. + Sets the ConstraintBuilder holding this constraint - Self - + - Causes the tolerance to be interpreted as a TimeSpan in clock ticks. + Write the failure message to the MessageWriter provided + as an argument. The default implementation simply passes + the constraint and the actual value to the writer, which + then displays the constraint description and the value. + + Constraints that need to provide additional details, + such as where the error occured can override this. - Self + The MessageWriter on which to display the message - + - SameAsConstraint tests whether an object is identical to - the object passed to its constructor + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - Initializes a new instance of the class. + Test whether the constraint is satisfied by an + ActualValueDelegate that returns the value to be tested. + The default implementation simply evaluates the delegate + but derived classes may override it to provide for delayed + processing. - The expected object. + An ActualValueDelegate + True for success, false for failure - + - Test whether the constraint is satisfied by a given value + Test whether the constraint is satisfied by a given reference. + The default implementation simply dereferences the value but + derived classes may override it to provide for delayed processing. - The value to be tested + A reference to the value to be tested True for success, false for failure - + Write the constraint description to a MessageWriter The writer on which the description is displayed - + - StringConstraint is the abstract base for constraints - that operate on strings. It supports the IgnoreCase - modifier for string operations. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + The writer on which the actual value is displayed - + - The expected value + Default override of ToString returns the constraint DisplayName + followed by any arguments within angle brackets. + - + - Indicates whether tests should be case-insensitive + Returns the string representation of this constraint - + - Constructs a StringConstraint given an expected value + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. - The expected value - + - Modify the constraint to ignore case in matching. + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. - + - EmptyStringConstraint tests whether a string is empty. + This operator creates a constraint that is satisfied if the + argument constraint is not satisfied. - + - Test whether the constraint is satisfied by a given value + Returns a DelayedConstraint with the specified delay time. - The value to be tested - True for success, false for failure + The delay in milliseconds. + - + - Write the constraint description to a MessageWriter + Returns a DelayedConstraint with the specified delay time + and polling interval. - The writer on which the description is displayed + The delay in milliseconds. + The interval at which to test the constraint. + - + - NullEmptyStringConstraint tests whether a string is either null or empty. + The display name of this Constraint for use by ToString(). + The default value is the name of the constraint with + trailing "Constraint" removed. Derived classes may set + this to another name in their constructors. - + - Constructs a new NullOrEmptyStringConstraint + Returns a ConstraintExpression by appending And + to the current constraint. - + - Test whether the constraint is satisfied by a given value + Returns a ConstraintExpression by appending And + to the current constraint. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns a ConstraintExpression by appending Or + to the current constraint. - The writer on which the description is displayed - + - SubstringConstraint can test whether a string contains - the expected substring. + Class used to detect any derived constraints + that fail to set the actual value in their + Matches override. - + - Initializes a new instance of the class. + Constructs an AttributeExistsConstraint for a specific attribute Type - The expected. + - + - Test whether the constraint is satisfied by a given value + Tests whether the object provides the expected attribute. - The value to be tested - True for success, false for failure + A Type, MethodInfo, or other ICustomAttributeProvider + True if the expected attribute is present, otherwise false - + - Write the constraint description to a MessageWriter + Writes the description of the constraint to the specified writer - The writer on which the description is displayed - + - StartsWithConstraint can test whether a string starts - with an expected substring. + 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. - + - Initializes a new instance of the class. + Abstract base class used for prefixes - The expected string - + - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. + The base constraint - - - + - Write the constraint description to a MessageWriter + Construct given a base constraint - The writer on which the description is displayed + - + - EndsWithConstraint can test whether a string ends - with an expected substring. + Constructs an AttributeConstraint for a specified attriute + Type and base constraint. + + - + - Initializes a new instance of the class. + Determines whether the Type or other provider has the + expected attribute and if its value matches the + additional constraint specified. - The expected string - + - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. + Writes a description of the attribute to the specified writer. - - - + - Write the constraint description to a MessageWriter + Writes the actual value supplied to the specified writer. - The writer on which the description is displayed - + - RegexConstraint can test whether a string matches - the pattern provided. + Returns a string representation of the constraint. - + - Initializes a new instance of the class. + BasicConstraint is the abstract base for constraints that + perform a simple comparison to a constant value. - The pattern. - + + + Initializes a new instance of the class. + + The expected. + The description. + + Test whether the constraint is satisfied by a given value The value to be tested True for success, false for failure - + Write the constraint description to a MessageWriter The writer on which the description is displayed - + - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. + NullConstraint tests that the actual value is null - + - The expected Type used by the constraint + Initializes a new instance of the class. - + - Construct a TypeConstraint for a given Type + TrueConstraint tests that the actual value is true - - + - Write the actual value for a failing constraint test to a - MessageWriter. TypeConstraints override this method to write - the name of the type. + Initializes a new instance of the class. - The writer on which the actual value is displayed - + - ExactTypeConstraint is used to test that an object - is of the exact type provided in the constructor + FalseConstraint tests that the actual value is false - + - Construct an ExactTypeConstraint for a given Type + Initializes a new instance of the class. - The expected Type. - + - Test that an object is of the exact type specified + NaNConstraint tests that the actual value is a double or float NaN - The actual value. - True if the tested object is of the exact type provided, otherwise false. - + - Write the description of this constraint to a MessageWriter + Test that the actual value is an NaN - The MessageWriter to use + + - + - InstanceOfTypeConstraint is used to test that an object - is of the same type provided or derived from it. + Write the constraint description to a specified writer + - + - Construct an InstanceOfTypeConstraint for the type provided + BinaryConstraint is the abstract base of all constraints + that combine two other constraints in some fashion. - The expected Type - + - Test whether an object is of the specified type or a derived type + The first constraint being combined - The object to be tested - True if the object is of the provided type or derives from it, otherwise false. - + - Write a description of this constraint to a MessageWriter + The second constraint being combined - The MessageWriter to use - + - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. + Construct a BinaryConstraint from two other constraints + The first constraint + The second constraint - + - Construct an AssignableFromConstraint for the type provided + AndConstraint succeeds only if both members succeed. - - + - Test whether an object can be assigned from the specified type + Create an AndConstraint from two other constraints - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. + The first constraint + The second constraint - + - Write a description of this constraint to a MessageWriter + Apply both member constraints to an actual value, succeeding + succeeding only if both of them succeed. - The MessageWriter to use + The actual value + True if the constraints both succeeded - + - AssignableToConstraint is used to test that an object - can be assigned to a given Type. + Write a description for this contraint to a MessageWriter + The MessageWriter to receive the description - + - Construct an AssignableToConstraint for the type provided + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - + The writer on which the actual value is displayed - + - Test whether an object can be assigned to the specified type + OrConstraint succeeds if either member succeeds - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. - + - Write a description of this constraint to a MessageWriter + Create an OrConstraint from two other constraints - The MessageWriter to use + The first constraint + The second constraint - + - 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. + Apply the member constraints to an actual value, succeeding + succeeding as soon as one of them succeeds. + The actual value + True if either constraint succeeded - + - Initializes a new instance of the class. + Write a description for this contraint to a MessageWriter - The expected. + The MessageWriter to receive the description - + - Test whether the constraint is satisfied by a given value + CollectionConstraint is the abstract base class for + constraints that operate on collections. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Construct an empty CollectionConstraint - The writer on which the description is displayed - + - Flag the constraint to ignore case and return self. + Construct a CollectionConstraint + - + - PropertyExistsConstraint tests that a named property - exists on the object provided through Match. - - Originally, PropertyConstraint provided this feature - in addition to making optional tests on the vaue - of the property. The two constraints are now separate. + Determines whether the specified enumerable is empty. + The enumerable. + + true if the specified enumerable is empty; otherwise, false. + - + - Initializes a new instance of the class. + Test whether the constraint is satisfied by a given value - The name of the property. + The value to be tested + True for success, false for failure - + - Test whether the property exists for a given object + Protected method to be implemented by derived classes - The object to be tested - True for success, false for failure + + - + - Write the constraint description to a MessageWriter + CollectionItemsEqualConstraint is the abstract base class for all + collection constraints that apply some notion of item equality + as a part of their operation. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. + Construct an empty CollectionConstraint - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + Construct a CollectionConstraint - + - + - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained constraint. + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - Abstract base class used for prefixes + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - The base constraint + Flag the constraint to use the supplied Comparison object. + The IComparer object to use. + Self. - + - Construct given a base constraint + Flag the constraint to use the supplied IEqualityComparer object. - + The IComparer object to use. + Self. - + - Initializes a new instance of the class. + Flag the constraint to use the supplied IEqualityComparer object. - The name. - The constraint to apply to the property. + The IComparer object to use. + Self. - + - Test whether the constraint is satisfied by a given value + Compares two collection members for equality - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Return a new CollectionTally for use in making tests - The writer on which the description is displayed + The collection to be included in the tally - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Flag the constraint to ignore case and return self. - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + EmptyCollectionConstraint tests whether a collection is empty. - - + - NotConstraint negates the effect of some other constraint + Check that the collection is empty + + - + - Initializes a new instance of the class. + Write the constraint description to a MessageWriter - The base constraint to be negated. + - + - Test whether the constraint is satisfied by a given value + UniqueItemsConstraint tests whether all the items in a + collection are unique. - The value to be tested - True for if the base constraint fails, false if it succeeds - + - Write the constraint description to a MessageWriter + Check that all items are unique. - The writer on which the description is displayed + + - + - Write the actual value for a failing constraint test to a MessageWriter. + Write a description of this constraint to a MessageWriter - The writer on which the actual value is displayed + - + - AllItemsConstraint applies another constraint to each - item in a collection, succeeding if they all succeed. + CollectionContainsConstraint is used to test whether a collection + contains an expected object as a member. - + - Construct an AllItemsConstraint on top of an existing constraint + Construct a CollectionContainsConstraint - + - + - Apply the item constraint to each item in the collection, - failing if any item fails. + Test whether the expected item is contained in the collection - + - Write a description of this constraint to a MessageWriter + Write a descripton of the constraint to a MessageWriter - + - SomeItemsConstraint applies another constraint to each - item in a collection, succeeding if any of them succeeds. + CollectionEquivalentCOnstraint is used to determine whether two + collections are equivalent. - + - Construct a SomeItemsConstraint on top of an existing constraint + Construct a CollectionEquivalentConstraint - + - + - Apply the item constraint to each item in the collection, - succeeding if any item succeeds. + Test whether two collections are equivalent - + Write a description of this constraint to a MessageWriter - + - NoItemConstraint applies another constraint to each - item in a collection, failing if any of them succeeds. + CollectionSubsetConstraint is used to determine whether + one collection is a subset of another - + - Construct a SomeItemsConstraint on top of an existing constraint + Construct a CollectionSubsetConstraint - + The collection that the actual value is expected to be a subset of - + - Apply the item constraint to each item in the collection, - failing if any item fails. + Test whether the actual collection is a subset of + the expected collection provided. - + Write a description of this constraint to a MessageWriter - + - The Numerics class contains common operations on numeric values. + CollectionOrderedConstraint is used to test whether a collection is ordered. - + - Checks the type of the object, returning true if - the object is a numeric type. + Construct a CollectionOrderedConstraint - The object to check - true if the object is a numeric type - + - Checks the type of the object, returning true if - the object is a floating point numeric type. + Modifies the constraint to use an IComparer and returns self. - The object to check - true if the object is a floating point numeric type - + - Checks the type of the object, returning true if - the object is a fixed point numeric type. + Modifies the constraint to use an IComparer<T> and returns self. - The object to check - true if the object is a fixed point numeric type - + - Test two numeric values for equality, performing the usual numeric - conversions and using a provided or default tolerance. If the tolerance - provided is Empty, this method may set it to a default tolerance. + Modifies the constraint to use a Comparison<T> and returns self. - The expected value - The actual value - A reference to the tolerance in effect - True if the values are equal - + - Compare two numeric values, performing the usual numeric conversions. + Modifies the constraint to test ordering by the value of + a specified property and returns self. - The expected value - The actual value - The relationship of the values to each other - + - 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. + Test whether the collection is ordered + + - + - Construct a MessageWriter given a culture + Write a description of the constraint to a MessageWriter + - + - Method to write single line message with optional args, usually - written to precede the general failure message. + Returns the string representation of the constraint. - The message to be written - Any arguments used in formatting the message + - + - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. + If used performs a reverse comparison - The indentation level of the message - The message to be written - Any arguments used in formatting the message - + - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. + CollectionTally counts (tallies) the number of + occurences of each object in one or more enumerations. - The constraint that failed - + - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. + Construct a CollectionTally object from a comparer and a collection - The expected value - The actual value causing the failure - + - Display Expected and Actual lines for given values, including - a tolerance value on the Expected line. + Try to remove an object from the tally - The expected value - The actual value causing the failure - The tolerance within which the test was made + The object to remove + True if successful, false if the object was not found - + - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. + Try to remove a set of objects from the tally - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in locating the point where the strings differ - If true, the strings should be clipped to fit the line + The objects to remove + True if successful, false if any object was not found - + - Writes the text for a connector. + The number of objects remaining in the tally - The connector. - + - Writes the text for a predicate. + ComparisonAdapter class centralizes all comparisons of + values in NUnit, adapting to the use of any provided + IComparer, IComparer<T> or Comparison<T> - The predicate. - + - Writes the text for an expected value. + Returns a ComparisonAdapter that wraps an IComparer - The expected value. - + - Writes the text for a modifier + Returns a ComparisonAdapter that wraps an IComparer<T> - The modifier. - + - Writes the text for an actual value. + Returns a ComparisonAdapter that wraps a Comparison<T> - The actual value. - + - Writes the text for a generalized value. + Compares two objects - The value. - + - Writes the text for a collection value, - starting at a particular point, to a max length + Gets the default ComparisonAdapter, which wraps an + NUnitComparer object. - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write - + - Abstract method to get the max line length + Construct a ComparisonAdapter for an IComparer - + - Static methods used in creating messages + Compares two objects + + + - + - Static string used when strings are clipped + Construct a default ComparisonAdapter - + - Returns the representation of a type as used in NUnitLite. - This is the same as Type.ToString() except for arrays, - which are displayed with their declared sizes. + ComparisonAdapter<T> extends ComparisonAdapter and + allows use of an IComparer<T> or Comparison<T> + to actually perform the comparison. - - - + - Converts any control characters in a string - to their escaped representation. + Construct a ComparisonAdapter for an IComparer<T> - The string to be converted - The converted string - + - Return the a string representation for a set of indices into an array + Compare a Type T to an object - Array of indices for which a string is needed - + - Get an array of indices representing the point in a collection or - array corresponding to a single int index into the collection. + Construct a ComparisonAdapter for a Comparison<T> - The collection to which the indices apply - Index in the collection - Array of indices - + - Clip a string to a given length, starting at a particular offset, returning the clipped - string with ellipses representing the removed parts + Compare a Type T to an object - The string to be clipped - The maximum permitted length of the result string - The point at which to start clipping - The clipped string - + - Clip the expected and actual strings in a coordinated fashion, - so that they may be displayed together. + Abstract base class for constraints that compare values to + determine if one is greater than, equal to or less than + the other. - - - - - + - Shows the position two strings start to differ. Comparison - starts at the start index. + The value against which a comparison is to be made - The expected string - The actual string - The index in the strings at which comparison should start - Boolean indicating whether case should be ignored - -1 if no mismatch found, or the index where mismatch found - + - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. + If true, less than returns success - + - The expected path used in the constraint + if true, equal returns success - + - Flag indicating whether a caseInsensitive comparison should be made + if true, greater than returns success - + - Construct a PathConstraint for a give expected path + The predicate used as a part of the description - The expected path - + - Returns the string representation of this constraint + ComparisonAdapter to be used in making the comparison - + - Canonicalize the provided path + Initializes a new instance of the class. - - The path in standardized form + The value against which to make a comparison. + if set to true less succeeds. + if set to true equal succeeds. + if set to true greater succeeds. + String used in describing the constraint. - + - Test whether two paths are the same + Test whether the constraint is satisfied by a given value - The first path - The second path - + The value to be tested + True for success, false for failure - + - Test whether one path is the same as or under another path + Write the constraint description to a MessageWriter - The first path - supposed to be the parent path - The second path - supposed to be the child path - + The writer on which the description is displayed - + - Modifies the current instance to be case-insensitve - and returns it. + Modifies the constraint to use an IComparer and returns self - + - Modifies the current instance to be case-sensitve - and returns it. + Modifies the constraint to use an IComparer<T> and returns self - + - Summary description for SamePathConstraint. + Modifies the constraint to use a Comparison<T> and returns self - + - Initializes a new instance of the class. + Tests whether a value is greater than the value supplied to its constructor - The expected path - + - Test whether the constraint is satisfied by a given value + Initializes a new instance of the class. - The value to be tested - True for success, false for failure + The expected value. - + - Write the constraint description to a MessageWriter + Tests whether a value is greater than or equal to the value supplied to its constructor - The writer on which the description is displayed - + - SamePathOrUnderConstraint tests that one path is under another + Initializes a new instance of the class. + The expected value. - + - Initializes a new instance of the class. + Tests whether a value is less than the value supplied to its constructor - The expected path - + - Test whether the constraint is satisfied by a given value + Initializes a new instance of the class. - The value to be tested - True for success, false for failure + The expected value. - + - Write the constraint description to a MessageWriter + Tests whether a value is less than or equal to the value supplied to its constructor - The writer on which the description is displayed - + - EmptyDirectoryConstraint is used to test that a directory is empty + Initializes a new instance of the class. + The expected value. - + - Test whether the constraint is satisfied by a given value + Delegate used to delay evaluation of the actual value + to be used in evaluating a constraint - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + 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 reognized. a ConstraintStack holds + input constraints as well as the results of each + operator applied. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Initializes a new instance of the class. - The writer on which the actual value is displayed - + - SubDirectoryConstraint is used to test that one directory is a subdirectory of another. + Appends the specified operator to the expression by first + reducing the operator stack and then pushing the new + operator on the stack. + The operator to push. - + - Initializes a new instance of the class. + Appends the specified constraint to the expresson by pushing + it on the constraint stack. - The dir info. + The constraint to push. - + - Test whether the constraint is satisfied by a given value + Sets the top operator right context. - The value to be tested - True for success, false for failure + The right context. - + - Write the constraint description to a MessageWriter + Reduces the operator stack until the topmost item + precedence is greater than or equal to the target precedence. - The writer on which the description is displayed + The target precedence. - + - Builds a list of DirectoryInfo objects, recursing where necessary + Resolves this instance, returning a Constraint. If the builder + is not currently in a resolvable state, an exception is thrown. - directory to recurse - list of DirectoryInfo objects from the top level + The resolved constraint - + - private method to determine whether a directory is within the path + Gets a value indicating whether this instance is resolvable. - top-level directory to search - directory to search for - true if found, false if not + + true if this instance is resolvable; otherwise, false. + - + - Method to compare two DirectoryInfo objects + OperatorStack is a type-safe stack for holding ConstraintOperators - first directory to compare - second directory to compare - true if equivalent, false if not - + - ThrowsConstraint is used to test the exception thrown by - a delegate by applying a constraint to it. + Initializes a new instance of the class. + The builder. - + - Initializes a new instance of the class, - using a constraint to be applied to the exception. + Pushes the specified operator onto the stack. - A constraint to apply to the caught exception. + The op. - + - Executes the code of the delegate and captures any exception. - If a non-null base constraint was provided, it applies that - constraint to the exception. + Pops the topmost operator from the stack. - A delegate representing the code to be tested - True if an exception is thrown and the constraint succeeds, otherwise false + - + - Converts an ActualValueDelegate to a TestDelegate - before calling the primary overload. + Gets a value indicating whether this is empty. - - + true if empty; otherwise, false. - + - Write the constraint description to a MessageWriter + Gets the topmost operator without modifying the stack. - The writer on which the description is displayed + The top. - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + ConstraintStack is a type-safe stack for holding Constraints - The writer on which the actual value is displayed - + - Returns the string representation of this constraint + Initializes a new instance of the class. + The builder. - + - Get the actual exception thrown - used by Assert.Throws. + Pushes the specified constraint. As a side effect, + the constraint's builder field is set to the + ConstraintBuilder owning this stack. + The constraint. - + - ThrowsNothingConstraint tests that a delegate does not - throw an exception. + Pops this topmost constrait from the stack. + As a side effect, the constraint's builder + field is set to null. + - + - Test whether the constraint is satisfied by a given value + Gets a value indicating whether this is empty. - The value to be tested - True if no exception is thrown, otherwise false + true if empty; otherwise, false. - + - Write the constraint description to a MessageWriter + Gets the topmost constraint without modifying the stack. - The writer on which the description is displayed + The topmost constraint - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + 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 + reognized. Once an actual Constraint is appended, the expression + returns a resolvable Constraint. - The writer on which the actual value is displayed - + - RangeConstraint tests whethe two values are within a - specified range. + ConstraintExpressionBase is the abstract base class for the + generated ConstraintExpression class, which represents a + compound constraint in the process of being constructed + from a series of syntactic elements. + + NOTE: ConstraintExpressionBase is aware of some of its + derived classes, which is an apparent violation of + encapsulation. Ideally, these classes would be a + single class, but they must be separated in order to + allow parts to be generated under .NET 1.x and to + provide proper user feedback in syntactically + aware IDEs. - + - Initializes a new instance of the class. + The ConstraintBuilder holding the elements recognized so far - From. - To. - + - Test whether the constraint is satisfied by a given value + Initializes a new instance of the class. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. - The writer on which the description is displayed + The builder. - + - Modifies the constraint to use an IComparer and returns self. + 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. + - + - Modifies the constraint to use an IComparer<T> and returns self. + Appends an operator to the expression and returns the + resulting expression itself. - + - Modifies the constraint to use a Comparison<T> and returns self. + Appends a self-resolving operator to the expression and + returns a new ResolvableConstraintExpression. - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Appends a constraint to the expression and returns that + constraint, which is associated with the current state + of the expression being built. - + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. + + The builder. + + 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. - + Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. - + Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. - + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + Returns a constraint that tests two items for equality - + Returns a constraint that tests that two references are the same object - + Returns a constraint that tests whether the actual value is greater than the suppled argument - + Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument - + Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument - + Returns a constraint that tests whether the actual value is less than the suppled argument - + Returns a constraint that tests whether the actual value is less than or equal to the suppled argument - + Returns a constraint that tests whether the actual value is less than or equal to the suppled argument - + Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. - + Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. - + Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. - + Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. - + Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. - + Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. - + Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. - + Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. - + Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. - + Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. - + Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument. - + Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. - + Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. - + Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. - + Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level @@ -2321,965 +2287,985 @@ collection member. - + Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. - + Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. - - - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. - - - + Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. - + Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. - - - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. - - - + Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. - + Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. - - - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. - - - + Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. - + Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. - + - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - + Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + is the same path or under an expected path after canonicalization. - + Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. - + Returns a constraint that tests whether the actual value falls within a specified range. - + Returns a ConstraintExpression that negates any following constraint. - + Returns a ConstraintExpression that negates any following constraint. - + Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. - + Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. - + Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. - + Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. - + Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. - + Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. - + Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. - + + + With is currently a NOP - reserved for future use. + + + Returns a constraint that tests for null - + Returns a constraint that tests for True - + Returns a constraint that tests for False - + Returns a constraint that tests for NaN - + Returns a constraint that tests for empty - + Returns a constraint that tests whether a collection contains all unique items. - + Returns a constraint that tests whether an object graph is serializable in binary format. - + Returns a constraint that tests whether an object graph is serializable in xml format. - + Returns a constraint that tests whether a collection is ordered - + - The ConstraintOperator class is used internally by a - ConstraintBuilder to represent an operator that - modifies or combines constraints. - - Constraint operators use left and right precedence - values to determine whether the top operator on the - stack should be reduced before pushing a new operator. + Helper class with properties and methods that supply + a number of constraints used in Asserts. - + - The precedence value used when the operator - is about to be pushed to the stack. + 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. - + - The precedence value used when the operator - is on the top of the stack. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - - + - The syntax element preceding this operator + Returns a constraint that tests two items for equality - + - The syntax element folowing this operator + Returns a constraint that tests that two references are the same object - + - The precedence value used when the operator - is about to be pushed to the stack. + Returns a constraint that tests whether the + actual value is greater than the suppled argument - + - The precedence value used when the operator - is on the top of the stack. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - + - PrefixOperator takes a single constraint and modifies - it's action in some way. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a constraint that tests whether the + actual value is less than the suppled argument - - + - Returns the constraint created by applying this - prefix to another constraint. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - - - + - Negates the test of the constraint it wraps. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - + - Constructs a new NotOperator + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - + - Returns a NotConstraint applied to its argument. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - + - Abstract base for operators that indicate how to - apply a constraint to items in a collection. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - + - Constructs a CollectionOperator + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - + - Represents a constraint that succeeds if all the - members of a collection match a base constraint. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - they all succeed. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - + - Represents a constraint that succeeds if any of the - members of a collection match a base constraint. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - any of them succeed. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - + - Represents a constraint that succeeds if none of the - members of a collection match a base constraint. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - + - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifes the - order of evaluation because of its precedence. + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. - + - Constructor for the WithOperator + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. - + - Returns a constraint that wraps its argument + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - + - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - + - 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. + 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. - + - Constructs a PropOperator for a particular named property + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - - + - Gets the name of the property to which the operator applies + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. - + - Operator that tests for the presence of a particular attribute - on a type and optionally applies further tests to the attribute. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - + - Construct an AttributeOperator for a particular Type + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The Type of attribute tested - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. - + - Operator that tests that an exception is thrown and - optionally applies further tests to the exception. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - + - Construct a ThrowsOperator + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. - + - Abstract base class for all binary operators + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. - - + - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. - + - Gets the left precedence of the operator + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - + - Gets the right precedence of the operator + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - + - Operator that requires both it's arguments to succeed + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - + - Construct an AndOperator + Returns a constraint that tests whether the actual value falls + within a specified range. - + - Apply the operator to produce an AndConstraint + Returns a ConstraintExpression that negates any + following constraint. - + - Operator that requires at least one of it's arguments to succeed + Returns a ConstraintExpression that negates any + following constraint. - + - Construct an OrOperator + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - + - Apply the operator to produce an OrConstraint + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. - + - 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 - reognized. Once an actual Constraint is appended, the expression - returns a resolvable Constraint. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. - + - ConstraintExpressionBase is the abstract base class for the - generated ConstraintExpression class, which represents a - compound constraint in the process of being constructed - from a series of syntactic elements. - - NOTE: ConstraintExpressionBase is aware of some of its - derived classes, which is an apparent violation of - encapsulation. Ideally, these classes would be a - single class, but they must be separated in order to - allow parts to be generated under .NET 1.x and to - provide proper user feedback in syntactically - aware IDEs. + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. - + - The ConstraintBuilder holding the elements recognized so far + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. - + - Initializes a new instance of the class. + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. - + - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. - The builder. - + - 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. + Returns a constraint that tests for null - - + - Appends an operator to the expression and returns the - resulting expression itself. + Returns a constraint that tests for True - + - Appends a self-resolving operator to the expression and - returns a new ResolvableConstraintExpression. + Returns a constraint that tests for False - + - Appends a constraint to the expression and returns that - constraint, which is associated with the current state - of the expression being built. + Returns a constraint that tests for NaN - + - Initializes a new instance of the class. + Returns a constraint that tests for empty - + - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. + Returns a constraint that tests whether a collection + contains all unique items. - The builder. - + - 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. + Returns a constraint that tests whether an object graph is serializable in binary format. - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Returns a constraint that tests whether an object graph is serializable in xml format. - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Returns a constraint that tests whether a collection is ordered - + - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. + The ConstraintOperator class is used internally by a + ConstraintBuilder to represent an operator that + modifies or combines constraints. + + Constraint operators use left and right precedence + values to determine whether the top operator on the + stack should be reduced before pushing a new operator. - + - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. + The precedence value used when the operator + is about to be pushed to the stack. - + - Returns a constraint that tests two items for equality + The precedence value used when the operator + is on the top of the stack. - + - Returns a constraint that tests that two references are the same object + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - Returns a constraint that tests whether the - actual value is greater than the suppled argument + The syntax element preceding this operator - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + The syntax element folowing this operator - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + The precedence value used when the operator + is about to be pushed to the stack. - + - Returns a constraint that tests whether the - actual value is less than the suppled argument + The precedence value used when the operator + is on the top of the stack. - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + PrefixOperator takes a single constraint and modifies + it's action in some way. - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Returns the constraint created by applying this + prefix to another constraint. + + - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Negates the test of the constraint it wraps. - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Constructs a new NotOperator - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Returns a NotConstraint applied to its argument. - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Abstract base for operators that indicate how to + apply a constraint to items in a collection. - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Constructs a CollectionOperator - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Represents a constraint that succeeds if all the + members of a collection match a base constraint. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + they all succeed. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Represents a constraint that succeeds if any of the + members of a collection match a base constraint. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + any of them succeed. - + - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. + Represents a constraint that succeeds if none of the + members of a collection match a base constraint. - + - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + none of them succeed. - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Represents a constraint that simply wraps the + constraint provided as an argument, without any + further functionality, but which modifes the + order of evaluation because of its precedence. - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Constructor for the WithOperator - + - 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. + Returns a constraint that wraps its argument - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Abstract base class for operators that are able to reduce to a + constraint whether or not another syntactic element follows. - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + 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. - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Constructs a PropOperator for a particular named property - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Gets the name of the property to which the operator applies - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Operator that tests for the presence of a particular attribute + on a type and optionally applies further tests to the attribute. - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Construct an AttributeOperator for a particular Type + The Type of attribute tested - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. - + - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + Operator that tests that an exception is thrown and + optionally applies further tests to the exception. - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Construct a ThrowsOperator - + - Returns a constraint that tests whether the actual value falls - within a specified range. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. - + - Returns a ConstraintExpression that negates any - following constraint. + Abstract base class for all binary operators - + - Returns a ConstraintExpression that negates any - following constraint. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Abstract method that produces a constraint by applying + the operator to its left and right constraint arguments. - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. + Gets the left precedence of the operator - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. + Gets the right precedence of the operator - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. + Operator that requires both it's arguments to succeed - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. + Construct an AndOperator - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. + Apply the operator to produce an AndConstraint - + - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. + Operator that requires at least one of it's arguments to succeed - + - With is currently a NOP - reserved for future use. + Construct an OrOperator - + - Returns a constraint that tests for null + Apply the operator to produce an OrConstraint - + - Returns a constraint that tests for True + 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. - + - Returns a constraint that tests for False + Initializes a new instance of the class. + The expected. - + - Returns a constraint that tests for NaN + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - Returns a constraint that tests for empty + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Returns a constraint that tests whether a collection - contains all unique items. + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - Returns a constraint that tests whether an object graph is serializable in binary format. + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - Returns a constraint that tests whether an object graph is serializable in xml format. + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + The IComparer object to use. + Self. - + - Returns a constraint that tests whether a collection is ordered + Flag the constraint to use the supplied IEqualityComparer object. + The IComparer object to use. + Self. - + - BinarySerializableConstraint tests whether - an object is serializable in binary format. + Flag the constraint to ignore case and return self. - + + + Applies a delay to the match so that a match can be evaluated in the future. + + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + If the value of is less than 0 + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + The time interval used for polling + If the value of is less than 0 + + Test whether the constraint is satisfied by a given value The value to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a delegate + + The delegate whose value is to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a given reference. + Overridden to wait for the specified delay period before + calling the base constraint with the dereferenced value. + + A reference to the value to be tested True for success, false for failure - + Write the constraint description to a MessageWriter The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Write the actual value for a failing constraint test to a MessageWriter. The writer on which the actual value is displayed - + - Returns the string representation + Returns the string representation of the constraint. - + - BinarySerializableConstraint tests whether - an object is serializable in binary format. + EmptyDirectoryConstraint is used to test that a directory is empty - + Test whether the constraint is satisfied by a given value The value to be tested True for success, false for failure - + Write the constraint description to a MessageWriter The writer on which the description is displayed - + Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes @@ -3288,245 +3274,263 @@ The writer on which the actual value is displayed - - - Returns the string representation of this constraint - - - - - BasicConstraint is the abstract base for constraints that - perform a simple comparison to a constant value. - - - + - Initializes a new instance of the class. + 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. - The expected. - The description. - + Test whether the constraint is satisfied by a given value The value to be tested True for success, false for failure - + Write the constraint description to a MessageWriter The writer on which the description is displayed - + - NullConstraint tests that the actual value is null + 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. - + - Initializes a new instance of the class. + If true, strings in error messages will be clipped - + - TrueConstraint tests that the actual value is true + NUnitEqualityComparer used to test equality. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + The expected value. - + - FalseConstraint tests that the actual value is false + Flag the constraint to use a tolerance when determining equality. + Tolerance value to be used + Self. - + - Initializes a new instance of the class. + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - NaNConstraint tests that the actual value is a double or float NaN + Flag the constraint to use the supplied IComparer object. + The IComparer object to use. + Self. - + - Test that the actual value is an NaN + Flag the constraint to use the supplied IComparer object. - - + The IComparer object to use. + Self. - + - Write the constraint description to a specified writer + Flag the constraint to use the supplied Comparison object. - + The IComparer object to use. + Self. - + - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. + Flag the constraint to use the supplied IEqualityComparer object. + The IComparer object to use. + Self. - + - Constructs an AttributeExistsConstraint for a specific attribute Type + Flag the constraint to use the supplied IEqualityComparer object. - + The IComparer object to use. + Self. - + - Tests whether the object provides the expected attribute. + Test whether the constraint is satisfied by a given value - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false + The value to be tested + True for success, false for failure - + - Writes the description of the constraint to the specified writer + Write a failure message. Overridden to provide custom + failure messages for EqualConstraint. + The MessageWriter to write to - + - 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. + Write description of this constraint + The MessageWriter to write to - + - Constructs an AttributeConstraint for a specified attriute - Type and base constraint. + Display the failure information for two collections that did not match. - - + The MessageWriter on which to display + The expected collection. + The actual collection + The depth of this failure in a set of nested collections - + - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. + Displays a single line showing the types and sizes of the expected + and actual collections or arrays. If both are identical, the value is + only shown once. + The MessageWriter on which to display + The expected collection or array + The actual collection or array + The indentation level for the message line - + - Writes a description of the attribute to the specified writer. + Displays a single line showing the point in the expected and actual + arrays at which the comparison failed. If the arrays have different + structures or dimensions, both values are shown. - - - - Writes the actual value supplied to the specified writer. + The MessageWriter on which to display + The expected array + The actual array + Index of the failure point in the underlying collections + The indentation level for the message line + + + + Flag the constraint to ignore case and return self. - + - Returns a string representation of the constraint. + Flag the constraint to suppress string clipping + and return self. - + - 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. - - It is used, for example, for a Property element or for - an Exception element, either of which may be optionally - followed by constraints that apply to the property or - exception. + Flag the constraint to compare arrays as collections + and return self. - + - Create a new instance of ResolvableConstraintExpression + Switches the .Within() modifier to interpret its tolerance as + a distance in representable values (see remarks). + Self. + + Ulp stands for "unit in the last place" and describes the minimum + amount a given value can change. For any integers, an ulp is 1 whole + digit. For floating point values, the accuracy of which is better + for smaller numbers and worse for larger numbers, an ulp depends + on the size of the number. Using ulps for comparison of floating + point results instead of fixed tolerances is safer because it will + automatically compensate for the added inaccuracy of larger numbers. + - + - Create a new instance of ResolvableConstraintExpression, - passing in a pre-populated ConstraintBuilder. + Switches the .Within() modifier to interpret its tolerance as + a percentage that the actual values is allowed to deviate from + the expected value. + Self - + - Resolve the current expression to a Constraint + Causes the tolerance to be interpreted as a TimeSpan in days. + Self - + - Appends an And Operator to the expression + Causes the tolerance to be interpreted as a TimeSpan in hours. + Self - + - Appends an Or operator to the expression. + Causes the tolerance to be interpreted as a TimeSpan in minutes. + Self - + - Applies a delay to the match so that a match can be evaluated in the future. + Causes the tolerance to be interpreted as a TimeSpan in seconds. + Self - + - Creates a new DelayedConstraint + Causes the tolerance to be interpreted as a TimeSpan in milliseconds. - The inner constraint two decorate - The time interval after which the match is performed - If the value of is less than 0 + Self - + - Creates a new DelayedConstraint + Causes the tolerance to be interpreted as a TimeSpan in clock ticks. - The inner constraint two decorate - The time interval after which the match is performed - The time interval used for polling - If the value of is less than 0 + Self - + - Test whether the constraint is satisfied by a given value + EqualityAdapter class handles all equality comparisons + that use an IEqualityComparer, IEqualityComparer<T> + or a ComparisonAdapter. - The value to be tested - True for if the base constraint fails, false if it succeeds - + - Test whether the constraint is satisfied by a delegate + Compares two objects, returning true if they are equal - The delegate whose value is to be tested - True for if the base constraint fails, false if it succeeds - + - Test whether the constraint is satisfied by a given reference. - Overridden to wait for the specified delay period before - calling the base constraint with the dereferenced value. + Returns an EqualityAdapter that wraps an IComparer. - A reference to the value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns an EqualityAdapter that wraps an IEqualityComparer. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a MessageWriter. + Returns an EqualityAdapter that wraps an IEqualityComparer<T>. - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + Returns an EqualityAdapter that wraps an IComparer<T>. + + + + + Returns an EqualityAdapter that wraps a Comparison<T>. @@ -3671,244 +3675,247 @@ The union's value as an unsigned long - + - Modes in which the tolerance value for a comparison can - be interpreted. + 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. - + - 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. + Construct a MessageWriter given a culture - + - The tolerance is used as a numeric range within which - two compared values are considered to be equal. + Method to write single line message with optional args, usually + written to precede the general failure message. + The message to be written + Any arguments used in formatting the message - + - Interprets the tolerance as the percentage by which - the two compared values my deviate from each other. + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + The indentation level of the message + The message to be written + Any arguments used in formatting the message - + - Compares two values based in their distance in - representable numbers. + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + The constraint that failed - + - 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. + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + The expected value + The actual value causing the failure - + - Constructs a linear tolerance of a specdified amount + Display Expected and Actual lines for given values, including + a tolerance value on the Expected line. + The expected value + The actual value causing the failure + The tolerance within which the test was made - + - Constructs a tolerance given an amount and ToleranceMode + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in locating the point where the strings differ + If true, the strings should be clipped to fit the line - + - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. + Writes the text for a connector. + The connector. - + - Returns an empty Tolerance object, equivalent to - specifying an exact match. + Writes the text for a predicate. + The predicate. - + - Gets the ToleranceMode for the current Tolerance + Writes the text for an expected value. + The expected value. - + - Gets the value of the current Tolerance instance. + Writes the text for a modifier + The modifier. - + - Returns a new tolerance, using the current amount as a percentage. + Writes the text for an actual value. + The actual value. - + - Returns a new tolerance, using the current amount in Ulps. + Writes the text for a generalized value. + The value. - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of days. + Writes the text for a collection value, + starting at a particular point, to a max length + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of hours. + Abstract method to get the max line length - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of minutes. + Static methods used in creating messages - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance is empty. - - - - - ComparisonAdapter class centralizes all comparisons of - values in NUnit, adapting to the use of any provided - IComparer, IComparer<T> or Comparison<T> - - - - - Returns a ComparisonAdapter that wraps an IComparer + Static string used when strings are clipped - + - Returns a ComparisonAdapter that wraps an IComparer<T> + Returns the representation of a type as used in NUnitLite. + This is the same as Type.ToString() except for arrays, + which are displayed with their declared sizes. + + - + - Returns a ComparisonAdapter that wraps a Comparison<T> + Converts any control characters in a string + to their escaped representation. + The string to be converted + The converted string - + - Compares two objects + Return the a string representation for a set of indices into an array + Array of indices for which a string is needed - + - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. + Get an array of indices representing the point in a collection or + array corresponding to a single int index into the collection. + The collection to which the indices apply + Index in the collection + Array of indices - + - Construct a ComparisonAdapter for an IComparer + Clip a string to a given length, starting at a particular offset, returning the clipped + string with ellipses representing the removed parts + The string to be clipped + The maximum permitted length of the result string + The point at which to start clipping + The clipped string - + - Compares two objects + Clip the expected and actual strings in a coordinated fashion, + so that they may be displayed together. - - - - - Construct a default ComparisonAdapter - - - - - ComparisonAdapter<T> extends ComparisonAdapter and - allows use of an IComparer<T> or Comparison<T> - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an IComparer<T> - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a Comparison<T> - - - - - Compare a Type T to an object - + + - + - EqualityAdapter class handles all equality comparisons - that use an IEqualityComparer, IEqualityComparer<T> - or a ComparisonAdapter. + Shows the position two strings start to differ. Comparison + starts at the start index. + The expected string + The actual string + The index in the strings at which comparison should start + Boolean indicating whether case should be ignored + -1 if no mismatch found, or the index where mismatch found - + - Compares two objects, returning true if they are equal + The Numerics class contains common operations on numeric values. - + - Returns an EqualityAdapter that wraps an IComparer. + Checks the type of the object, returning true if + the object is a numeric type. + The object to check + true if the object is a numeric type - + - Returns an EqualityAdapter that wraps an IEqualityComparer. + Checks the type of the object, returning true if + the object is a floating point numeric type. + The object to check + true if the object is a floating point numeric type - + - Returns an EqualityAdapter that wraps an IEqualityComparer<T>. + Checks the type of the object, returning true if + the object is a fixed point numeric type. + The object to check + true if the object is a fixed point numeric type - + - Returns an EqualityAdapter that wraps an IComparer<T>. + Test two numeric values for equality, performing the usual numeric + conversions and using a provided or default tolerance. If the tolerance + provided is Empty, this method may set it to a default tolerance. + The expected value + The actual value + A reference to the tolerance in effect + True if the values are equal - + - Returns an EqualityAdapter that wraps a Comparison<T>. + Compare two numeric values, performing the usual numeric conversions. + The expected value + The actual value + The relationship of the values to each other @@ -4010,1440 +4017,1199 @@ Gets the list of failure points for the last Match performed. - + - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. + PathConstraint serves as the abstract base of constraints + that operate on paths and provides several helper methods. - + - Construct a PredicateConstraint from a predicate + The expected path used in the constraint - + - Determines whether the predicate succeeds when applied - to the actual value. + The actual path being tested - + - Writes the description to a MessageWriter + Flag indicating whether a caseInsensitive comparison should be made - + - CollectionTally counts (tallies) the number of - occurences of each object in one or more enumerations. + Construct a PathConstraint for a give expected path + The expected path - + - Construct a CollectionTally object from a comparer and a collection + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - Try to remove an object from the tally + Returns true if the expected path and actual path match - The object to remove - True if successful, false if the object was not found - + - Try to remove a set of objects from the tally + Returns the string representation of this constraint - The objects to remove - True if successful, false if any object was not found - + - The number of objects remaining in the tally + Canonicalize the provided path + + The path in standardized form - + - SetUpFixtureAttribute is used to identify a SetUpFixture + Test whether two paths are the same + The first path + The second path + Indicates whether case should be ignored + - + - Basic Asserts on strings. + Test whether one path is under another path + The first path - supposed to be the parent path + The second path - supposed to be the child path + Indicates whether case should be ignored + - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Test whether one path is the same as or under another path - - + The first path - supposed to be the parent path + The second path - supposed to be the child path + - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Modifies the current instance to be case-insensitve + and returns it. - - - + - Asserts that a string is found within another string. + Modifies the current instance to be case-sensitve + and returns it. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string is found within another string. + Summary description for SamePathConstraint. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string is found within another string. + Initializes a new instance of the class. - The expected string - The string to be examined + The expected path - + - Asserts that a string is not found within another string. + Test whether the constraint is satisfied by a given value - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message + The expected path + The actual path + True for success, false for failure - + - Asserts that a string is found within another string. + Write the constraint description to a MessageWriter - The expected string - The string to be examined - The message to display in case of failure + The writer on which the description is displayed - + - Asserts that a string is found within another string. + SubPathConstraint tests that the actual path is under the expected path - The expected string - The string to be examined - + - Asserts that a string starts with another string. + Initializes a new instance of the class. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message + The expected path - + - Asserts that a string starts with another string. + Test whether the constraint is satisfied by a given value - The expected string - The string to be examined - The message to display in case of failure + The expected path + The actual path + True for success, false for failure - + - Asserts that a string starts with another string. + Write the constraint description to a MessageWriter - The expected string - The string to be examined + The writer on which the description is displayed - + - Asserts that a string does not start with another string. + SamePathOrUnderConstraint tests that one path is under another - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string does not start with another string. + Initializes a new instance of the class. - The expected string - The string to be examined - The message to display in case of failure + The expected path - + - Asserts that a string does not start with another string. + Test whether the constraint is satisfied by a given value - The expected string - The string to be examined + The expected path + The actual path + True for success, false for failure - + - Asserts that a string ends with another string. + Write the constraint description to a MessageWriter - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message + The writer on which the description is displayed - + - Asserts that a string ends with another string. + Predicate constraint wraps a Predicate in a constraint, + returning success if the predicate is true. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string ends with another string. + Construct a PredicateConstraint from a predicate - The expected string - The string to be examined - + - Asserts that a string does not end with another string. + Determines whether the predicate succeeds when applied + to the actual value. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string does not end with another string. + Writes the description to a MessageWriter - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string does not end with another string. + NotConstraint negates the effect of some other constraint - The expected string - The string to be examined - + - Asserts that two strings are equal, without regard to case. + Initializes a new instance of the class. - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message + The base constraint to be negated. - + - Asserts that two strings are equal, without regard to case. + Test whether the constraint is satisfied by a given value - The expected string - The actual string - The message to display in case of failure + The value to be tested + True for if the base constraint fails, false if it succeeds - + - Asserts that two strings are equal, without regard to case. + Write the constraint description to a MessageWriter - The expected string - The actual string + The writer on which the description is displayed - + - Asserts that two strings are not equal, without regard to case. + Write the actual value for a failing constraint test to a MessageWriter. - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message + The writer on which the actual value is displayed - + - Asserts that two strings are Notequal, without regard to case. + AllItemsConstraint applies another constraint to each + item in a collection, succeeding if they all succeed. - The expected string - The actual string - The message to display in case of failure - + - Asserts that two strings are not equal, without regard to case. + Construct an AllItemsConstraint on top of an existing constraint - The expected string - The actual string + - + - Asserts that a string matches an expected regular expression pattern. + Apply the item constraint to each item in the collection, + failing if any item fails. - The regex pattern to be matched - The actual string - The message to display in case of failure - Arguments used in formatting the message + + - + - Asserts that a string matches an expected regular expression pattern. + Write a description of this constraint to a MessageWriter - The regex pattern to be matched - The actual string - The message to display in case of failure + - + - Asserts that a string matches an expected regular expression pattern. + SomeItemsConstraint applies another constraint to each + item in a collection, succeeding if any of them succeeds. - The regex pattern to be matched - The actual string - + - Asserts that a string does not match an expected regular expression pattern. + Construct a SomeItemsConstraint on top of an existing constraint - The regex pattern to be used - The actual string - The message to display in case of failure - Arguments used in formatting the message + - + - Asserts that a string does not match an expected regular expression pattern. + Apply the item constraint to each item in the collection, + succeeding if any item succeeds. - The regex pattern to be used - The actual string - The message to display in case of failure + + - + - Asserts that a string does not match an expected regular expression pattern. + Write a description of this constraint to a MessageWriter - The regex pattern to be used - The actual string + - + - PropertyAttribute is used to attach information to a test as a name/value pair.. + NoItemConstraint applies another constraint to each + item in a collection, failing if any of them succeeds. - + - Construct a PropertyAttribute with a name and string value + Construct a SomeItemsConstraint on top of an existing constraint - The name of the property - The property value + - + - Construct a PropertyAttribute with a name and int value + Apply the item constraint to each item in the collection, + failing if any item fails. - The name of the property - The property value + + - + - Construct a PropertyAttribute with a name and double value + Write a description of this constraint to a MessageWriter - The name of the property - The property value + - + - Constructor for derived classes that set the - property dictionary directly. + PropertyExistsConstraint tests that a named property + exists on the object provided through Match. + + Originally, PropertyConstraint provided this feature + in addition to making optional tests on the vaue + of the property. The two constraints are now separate. - + - Constructor for use by derived classes that use the - name of the type as the property name. Derived classes - must ensure that the Type of the property value is - a standard type supported by the BCL. Any custom - types will cause a serialization Exception when - in the client. + Initializes a new instance of the class. + The name of the property. - + - Gets the property dictionary for this attribute + Test whether the property exists for a given object + The object to be tested + True for success, false for failure - + - A set of Assert methods operationg on one or more collections + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Write the actual value for a failing constraint test to a + MessageWriter. - - + The writer on which the actual value is displayed - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Returns the string representation of the constraint. - - + - + - Asserts that all items contained in collection are of the type specified by expectedType. + PropertyConstraint extracts a named property and uses + its value as the actual value for a chained constraint. - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - + - Asserts that all items contained in collection are of the type specified by expectedType. + Initializes a new instance of the class. - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure + The name. + The constraint to apply to the property. - + - Asserts that all items contained in collection are of the type specified by expectedType. + Test whether the constraint is satisfied by a given value - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that all items contained in collection are not equal to null. + Write the constraint description to a MessageWriter - IEnumerable containing objects to be considered + The writer on which the description is displayed - + - Asserts that all items contained in collection are not equal to null. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - IEnumerable containing objects to be considered - The message that will be displayed on failure + The writer on which the actual value is displayed - + - Asserts that all items contained in collection are not equal to null. + Returns the string representation of the constraint. - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + - + - Ensures that every object contained in collection exists within the collection - once and only once. + RangeConstraint tests whethe two values are within a + specified range. - IEnumerable of objects to be considered - + - Ensures that every object contained in collection exists within the collection - once and only once. + Initializes a new instance of the class. - IEnumerable of objects to be considered - The message that will be displayed on failure + From. + To. - + - Ensures that every object contained in collection exists within the collection - once and only once. + Test whether the constraint is satisfied by a given value - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + Write the constraint description to a MessageWriter - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered + The writer on which the description is displayed - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + Modifies the constraint to use an IComparer and returns self. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + Modifies the constraint to use an IComparer<T> and returns self. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + Modifies the constraint to use a Comparison<T> and returns self. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + 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. + + It is used, for example, for a Property element or for + an Exception element, either of which may be optionally + followed by constraints that apply to the property or + exception. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + Create a new instance of ResolvableConstraintExpression - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + Create a new instance of ResolvableConstraintExpression, + passing in a pre-populated ConstraintBuilder. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + Resolve the current expression to a Constraint - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + Appends an And Operator to the expression - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that expected and actual are not exactly equal. + Appends an Or operator to the expression. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + ReusableConstraint wraps a resolved constraint so that it + may be saved and reused as needed. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - + - Asserts that expected and actual are not exactly equal. + Construct a ReusableConstraint - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure + The constraint or expression to be reused - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + Conversion operator from a normal constraint to a ReusableConstraint. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure + The original constraint to be wrapped as a ReusableConstraint + - + - Asserts that expected and actual are not exactly equal. + Returns the string representation of the constraint. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + A string representing the constraint - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + Resolves the ReusableConstraint by returning the constraint + that it originally wrapped. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message + A resolved constraint - + - Asserts that expected and actual are not equivalent. + SameAsConstraint tests whether an object is identical to + the object passed to its constructor - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - + - Asserts that expected and actual are not equivalent. + Initializes a new instance of the class. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure + The expected object. - + - Asserts that expected and actual are not equivalent. + Test whether the constraint is satisfied by a given value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that collection contains actual as an item. + Write the constraint description to a MessageWriter - IEnumerable of objects to be considered - Object to be found within collection + The writer on which the description is displayed - + - Asserts that collection contains actual as an item. + BinarySerializableConstraint tests whether + an object is serializable in binary format. - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure - + - Asserts that collection contains actual as an item. + Test whether the constraint is satisfied by a given value - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that collection does not contain actual as an item. + Write the constraint description to a MessageWriter - IEnumerable of objects to be considered - Object that cannot exist within collection + The writer on which the description is displayed - + - Asserts that collection does not contain actual as an item. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure + The writer on which the actual value is displayed - + - Asserts that collection does not contain actual as an item. + Returns the string representation - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that superset is not a subject of subset. + BinarySerializableConstraint tests whether + an object is serializable in binary format. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - + - Asserts that superset is not a subject of subset. + Test whether the constraint is satisfied by a given value - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure + The value to be tested + True for success, false for failure - + - Asserts that superset is not a subject of subset. + Write the constraint description to a MessageWriter - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Asserts that superset is a subset of subset. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - The IEnumerable superset to be considered - The IEnumerable subset to be considered + The writer on which the actual value is displayed - + - Asserts that superset is a subset of subset. + Returns the string representation of this constraint - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - + - Asserts that superset is a subset of subset. + StringConstraint is the abstract base for constraints + that operate on strings. It supports the IgnoreCase + modifier for string operations. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Assert that an array, list or other collection is empty + The expected value - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message - + - Assert that an array, list or other collection is empty + Indicates whether tests should be case-insensitive - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - + - Assert that an array,list or other collection is empty + Constructs a StringConstraint given an expected value - An array, list or other collection implementing IEnumerable + The expected value - + - Assert that an array, list or other collection is empty + Modify the constraint to ignore case in matching. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message - + - Assert that an array, list or other collection is empty + EmptyStringConstraint tests whether a string is empty. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - + - Assert that an array,list or other collection is empty + Test whether the constraint is satisfied by a given value - An array, list or other collection implementing IEnumerable + The value to be tested + True for success, false for failure - + - Assert that an array, list or other collection is ordered + Write the constraint description to a MessageWriter - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Assert that an array, list or other collection is ordered + NullEmptyStringConstraint tests whether a string is either null or empty. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - + - Assert that an array, list or other collection is ordered + Constructs a new NullOrEmptyStringConstraint - An array, list or other collection implementing IEnumerable - + - Assert that an array, list or other collection is ordered + Test whether the constraint is satisfied by a given value - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Assert that an array, list or other collection is ordered + Write the constraint description to a MessageWriter - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure + The writer on which the description is displayed - + - Assert that an array, list or other collection is ordered + SubstringConstraint can test whether a string contains + the expected substring. - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - + - Summary description for FileAssert. + Initializes a new instance of the class. + The expected. - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Test whether the constraint is satisfied by a given value - - + The value to be tested + True for success, false for failure - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Write the constraint description to a MessageWriter - - + The writer on which the description is displayed - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + StartsWithConstraint can test whether a string starts + with an expected substring. - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Initializes a new instance of the class. - The expected Stream - The actual Stream - The message to display if Streams are not equal - Arguments to be used in formatting the message + The expected string - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. - The expected Stream - The actual Stream - The message to display if objects are not equal + + - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Write the constraint description to a MessageWriter - The expected Stream - The actual Stream + The writer on which the description is displayed - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + EndsWithConstraint can test whether a string ends + with an expected substring. - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Initializes a new instance of the class. - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal + The expected string - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. - A file containing the value that is expected - A file containing the actual value + + - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Write the constraint description to a MessageWriter - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + RegexConstraint can test whether a string matches + the pattern provided. - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Initializes a new instance of the class. - The path to a file containing the value that is expected - The path to a file containing the actual value + The pattern. - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + Test whether the constraint is satisfied by a given value - The expected Stream - The actual Stream - The message to be displayed when the two Stream are the same. - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + Write the constraint description to a MessageWriter - The expected Stream - The actual Stream - The message to be displayed when the Streams are the same. + The writer on which the description is displayed - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + ThrowsConstraint is used to test the exception thrown by + a delegate by applying a constraint to it. - The expected Stream - The actual Stream - + - Asserts that two files are not equal. If they are equal - an is thrown. + Initializes a new instance of the class, + using a constraint to be applied to the exception. - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message + A constraint to apply to the caught exception. - + - Asserts that two files are not equal. If they are equal - an is thrown. + Executes the code of the delegate and captures any exception. + If a non-null base constraint was provided, it applies that + constraint to the exception. - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal + A delegate representing the code to be tested + True if an exception is thrown and the constraint succeeds, otherwise false - + - Asserts that two files are not equal. If they are equal - an is thrown. + Converts an ActualValueDelegate to a TestDelegate + before calling the primary overload. - A file containing the value that is expected - A file containing the actual value + + - + - Asserts that two files are not equal. If they are equal - an is thrown. + Write the constraint description to a MessageWriter - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Asserts that two files are not equal. If they are equal - an is thrown. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal + The writer on which the actual value is displayed - + - Asserts that two files are not equal. If they are equal - an is thrown. + Returns the string representation of this constraint - The path to a file containing the value that is expected - The path to a file containing the actual value - + - Attribute used to provide descriptive text about a - test case or fixture. + Get the actual exception thrown - used by Assert.Throws. - + - Construct the attribute + ThrowsNothingConstraint tests that a delegate does not + throw an exception. - Text describing the test - + - Gets the test description + Test whether the constraint is satisfied by a given value + The value to be tested + True if no exception is thrown, otherwise false - + - Interface implemented by a user fixture in order to - validate any expected exceptions. It is only called - for test methods marked with the ExpectedException - attribute. + Converts an ActualValueDelegate to a TestDelegate + before calling the primary overload. + + - + - Method to handle an expected exception + Write the constraint description to a MessageWriter - The exception to be handled + The writer on which the description is displayed - + - TextMessageWriter writes constraint descriptions and messages - in displayable form as a text stream. It tailors the display - of individual message components to form the standard message - format of NUnit assertion failure messages. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + The writer on which the actual value is displayed - + - Prefix used for the expected value line of a message + Modes in which the tolerance value for a comparison can + be interpreted. - + - Prefix used for the actual value line of a message + 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. - + - Length of a message prefix + The tolerance is used as a numeric range within which + two compared values are considered to be equal. - + - Construct a TextMessageWriter + Interprets the tolerance as the percentage by which + the two compared values my deviate from each other. - + - Construct a TextMessageWriter, specifying a user message - and optional formatting arguments. + Compares two values based in their distance in + representable numbers. - - - + - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. + 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. - The indentation level of the message - The message to be written - Any arguments used in formatting the message - + - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. + Constructs a linear tolerance of a specdified amount - The constraint that failed - + - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. + Constructs a tolerance given an amount and ToleranceMode - The expected value - The actual value causing the failure - + - Display Expected and Actual lines for given values, including - a tolerance value on the expected line. + Tests that the current Tolerance is linear with a + numeric value, throwing an exception if it is not. - The expected value - The actual value causing the failure - The tolerance within which the test was made - + - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. + Returns an empty Tolerance object, equivalent to + specifying an exact match. - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in string comparisons - If true, clip the strings to fit the max line length - + - Writes the text for a connector. + Gets the ToleranceMode for the current Tolerance - The connector. - + - Writes the text for a predicate. + Gets the value of the current Tolerance instance. - The predicate. - + - Write the text for a modifier. + Returns a new tolerance, using the current amount as a percentage. - The modifier. - + - Writes the text for an expected value. + Returns a new tolerance, using the current amount in Ulps. - The expected value. - + - Writes the text for an actual value. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of days. - The actual value. - + - Writes the text for a generalized value. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of hours. - The value. - + - Writes the text for a collection value, - starting at a particular point, to a max length + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of minutes. - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write - + - Write the generic 'Expected' line for a constraint + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of seconds. - The constraint that failed - + - Write the generic 'Expected' line for a given value + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of milliseconds. - The expected value - + - Write the generic 'Expected' line for a given value - and tolerance. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of clock ticks. - The expected value - The tolerance within which the test was made - + - Write the generic 'Actual' line for a constraint + Returns true if the current tolerance is empty. - The constraint for which the actual value is to be written - + - Write the generic 'Actual' line for a given value + TypeConstraint is the abstract base for constraints + that take a Type as their expected value. - The actual value causing a failure - + - Gets or sets the maximum line length for this writer + The expected Type used by the constraint - + - AssertionHelper is an optional base class for user tests, - allowing the use of shorter names for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. + Construct a TypeConstraint for a given Type + - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to + Write the actual value for a failing constraint test to a + MessageWriter. TypeConstraints override this method to write + the name of the type. - A Constraint to be applied - The actual value to test + The writer on which the actual value is displayed - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to + ExactTypeConstraint is used to test that an object + is of the exact type provided in the constructor - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to + Construct an ExactTypeConstraint for a given Type - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message + The expected Type. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Test that an object is of the exact type specified - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested + The actual value. + True if the tested object is of the exact type provided, otherwise false. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Write the description of this constraint to a MessageWriter - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure + The MessageWriter to use - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + InstanceOfTypeConstraint is used to test that an object + is of the same type provided or derived from it. - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Construct an InstanceOfTypeConstraint for the type provided - A Constraint to be applied - The actual value to test + The expected Type - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Test whether an object is of the specified type or a derived type - A Constraint to be applied - The actual value to test - The message that will be displayed on failure + The object to be tested + True if the object is of the provided type or derives from it, otherwise false. - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Write a description of this constraint to a MessageWriter - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to - . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message + The MessageWriter to use - + - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to - . + AssignableFromConstraint is used to test that an object + can be assigned from a given Type. - The evaluated condition - The message to display if the condition is false - + - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to . + Construct an AssignableFromConstraint for the type provided - The evaluated condition + - + - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. + Test whether an object can be assigned from the specified type - A TestDelegate to be executed - A ThrowsConstraint used in the test + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. - + - Returns a ListMapper based on a collection. + Write a description of this constraint to a MessageWriter - The original collection - + The MessageWriter to use - + - Abstract base for Attributes that are used to include tests - in the test run based on environmental settings. + AssignableToConstraint is used to test that an object + can be assigned to a given Type. - + - Constructor with no included items specified, for use - with named property syntax. + Construct an AssignableToConstraint for the type provided + - + - Constructor taking one or more included items + Test whether an object can be assigned to the specified type - Comma-delimited list of included items + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. - + - Name of the item that is needed in order for - a test to run. Multiple itemss may be given, - separated by a comma. + Write a description of this constraint to a MessageWriter + The MessageWriter to use - + - Name of the item to be excluded. Multiple items - may be given, separated by a comma. + Thrown when an assertion failed. + - - - The reason for including or excluding the test - + + The error message that explains + the reason for the exception - - - PlatformAttribute is used to mark a test fixture or an - individual method as applying to a particular platform only. - + + The error message that explains + the reason for the exception + The exception that caused the + current exception - + - Constructor with no platforms specified, for use - with named property syntax. + Serialization Constructor - + - Constructor taking one or more platforms + Thrown when an assertion failed. - Comma-deliminted list of platforms - + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - CultureAttribute is used to mark a test fixture or an - individual method as applying to a particular Culture only. + Serialization Constructor - + - Constructor with no cultures specified, for use - with named property syntax. + Thrown when a test executes inconclusively. + - + + The error message that explains + the reason for the exception + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Constructor taking one or more cultures + Serialization Constructor - Comma-deliminted list of cultures - + - Summary description for SetCultureAttribute. + Thrown when an assertion failed. - + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Construct given the name of a culture + Serialization Constructor - - + - GlobalSettings is a place for setting default values used - by the framework in performing asserts. + Delegate used by tests that execute code and + capture any thrown exception. - + - Default tolerance for floating point equality + The Assert class contains a collection of static methods that + implement the most common assertions used in NUnit. - + - Summary description for DirectoryAssert + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. - + The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function. @@ -5451,7 +5217,7 @@ - + override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function @@ -5460,1942 +5226,2645 @@ - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + Helper for Assert.AreEqual(double expected, double actual, ...) + allowing code generation to work consistently. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal + The message to initialize the with. Arguments to be used in formatting the message - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal + The message to initialize the with. - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. - A directory containing the value that is expected - A directory containing the actual value - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws an with the message and arguments + that are passed in. This is used by the other Assert functions. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal + The message to initialize the with. Arguments to be used in formatting the message - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws an with the message that is + passed in. This is used by the other Assert functions. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal + The message to initialize the with. - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Throws an . + This is used by the other Assert functions. - A directory path string containing the value that is expected - A directory path string containing the actual value - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an with the message and arguments + that are passed in. This causes the test to be reported as ignored. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal + The message to initialize the with. Arguments to be used in formatting the message - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an with the message that is + passed in. This causes the test to be reported as ignored. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal + The message to initialize the with. - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an . + This causes the test to be reported as ignored. - A directory containing the value that is expected - A directory containing the actual value - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an with the message and arguments + that are passed in. This causes the test to be reported as inconclusive. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal + The message to initialize the with. Arguments to be used in formatting the message - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an with the message that is + passed in. This causes the test to be reported as inconclusive. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal + The message to initialize the with. - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Throws an . + This causes the test to be reported as Inconclusive. - A directory path string containing the value that is expected - A directory path string containing the actual value - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message + A Constraint to be applied + The actual value to test - + - Asserts that the directory is empty. If it is not empty - an is thrown. - - A directory to search - The message to display if directories are not equal - - - - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search + A Constraint to be applied + The actual value to test + The message that will be displayed on failure - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal + A Constraint to be applied + The actual value to test - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search + A Constraint to be applied + The actual value to test + The message that will be displayed on failure - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - A directory to search - The message to display if directories are not equal + A Constraint to be applied + The actual value to test + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . - A directory to search - The message to display if directories are not equal + The evaluated condition + The message to display if the condition is false - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Asserts that a condition is true. If the condition is false the method throws + an . - A directory to search + The evaluated condition - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory + A constraint to be satisfied by the exception + A TestSnippet delegate - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory + The exception Type expected + A TestSnippet delegate - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws a particular exception when called. - A directory to search - sub-directory asserted to exist under directory + Type of the expected exception + A TestSnippet delegate - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws an exception when called + and returns it. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + A TestDelegate + The message that will be displayed on failure Arguments to be used in formatting the message - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws an exception when called + and returns it. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + A TestDelegate + The message that will be displayed on failure - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Verifies that a delegate throws an exception when called + and returns it. - A directory to search - sub-directory asserted to exist under directory + A TestDelegate - + - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - NOTE: This interface is used in both the framework - and the core, even though that results in two different - types. However, sharing the source code guarantees that - the various implementations will be compatible and that - the core is able to reflect successfully over the - framework implementations of ITestCaseData. + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure - + - Gets the argument list to be provided to the test + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate - + - Gets the expected result + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Gets the expected exception Type + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure - + - Gets the FullName of the expected exception + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate - + - Gets the name to be used for the test + Verifies that a delegate does not throw an exception + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Gets the description of the test + Verifies that a delegate does not throw an exception. + A TestSnippet delegate + The message that will be displayed on failure - + - Gets a value indicating whether this is ignored. + Verifies that a delegate does not throw an exception. - true if ignored; otherwise, false. + A TestSnippet delegate - + - Gets the ignore reason. + Asserts that a condition is true. If the condition is false the method throws + an . - The ignore reason. + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a TestCaseAttribute with a list of arguments. - This constructor is not CLS-Compliant + Asserts that a condition is true. If the condition is false the method throws + an . - + The evaluated condition + The message to display in case of failure - + - Construct a TestCaseAttribute with a single argument + Asserts that a condition is true. If the condition is false the method throws + an . - + The evaluated condition - + - Construct a TestCaseAttribute with a two arguments + Asserts that a condition is true. If the condition is false the method throws + an . - - + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a TestCaseAttribute with a three arguments + Asserts that a condition is true. If the condition is false the method throws + an . - - - + The evaluated condition + The message to display in case of failure - + - Gets the list of arguments to a test case + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition - + - Gets or sets the expected result. - - The result. + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the expected exception. - - The expected exception. + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure - + - Gets or sets the name the expected exception. - - The expected name of the exception. + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition - + - Gets or sets the expected message of the expected exception - - The expected message of the exception. + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the type of match to be performed on the expected message - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure - + - Gets or sets the description. - - The description. + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition - + - Gets or sets the name of the test. + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - The name of the test. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the ignored status of the test + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + The object that is to be tested + The message to display in case of failure - + - Gets or sets the ignored status of the test + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + The object that is to be tested - + - Gets the ignore reason. + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - The ignore reason. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - The TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It provides a number of instance modifiers - for use in initializing the test case. - - Note: Instance modifiers are getters that return - the same instance after modifying it's state. + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + The object that is to be tested + The message to display in case of failure - + - The argument list to be provided to the test + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + The object that is to be tested - + - The expected result to be returned + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - The expected exception Type + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested + The message to display in case of failure - + - The FullName of the expected exception + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested - + - The name to be used for the test + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - The description of the test + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested + The message to display in case of failure - + - A dictionary of properties, used to add information - to tests without requiring the class to change. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested - + - If true, indicates that the test case is to be ignored + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - The reason for ignoring a test case + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested + The message to display in case of failure - + - Initializes a new instance of the class. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - The arguments. + The value that is to be tested - + - Initializes a new instance of the class. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - The argument. + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Initializes a new instance of the class. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - The first argument. - The second argument. + The value that is to be tested + The message to display in case of failure - + - Initializes a new instance of the class. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - The first argument. - The second argument. - The third argument. + The value that is to be tested - + - Sets the expected result for the test + Assert that a string is empty - that is equal to string.Empty - The expected result - A modified TestCaseData + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Sets the expected exception type for the test + Assert that a string is empty - that is equal to string.Empty - Type of the expected exception. - The modified TestCaseData instance + The string to be tested + The message to display in case of failure - + - Sets the expected exception type for the test + Assert that a string is empty - that is equal to string.Empty - FullName of the expected exception. - The modified TestCaseData instance + The string to be tested - + - Sets the name of the test case + Assert that an array, list or other collection is empty - The modified TestCaseData instance + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message - + - Sets the description for the test case - being constructed. + Assert that an array, list or other collection is empty - The description. - The modified TestCaseData instance. + An array, list or other collection implementing ICollection + The message to display in case of failure - + - Applies a category to the test + Assert that an array, list or other collection is empty - - + An array, list or other collection implementing ICollection - + - Applies a named property to the test + Assert that a string is not empty - that is not equal to string.Empty - - - + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Applies a named property to the test + Assert that a string is not empty - that is not equal to string.Empty - - - + The string to be tested + The message to display in case of failure - + - Applies a named property to the test + Assert that a string is not empty - that is not equal to string.Empty - - - + The string to be tested - + - Ignores this TestCase. + Assert that an array, list or other collection is not empty - + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message - + - Ignores this TestCase, specifying the reason. + Assert that an array, list or other collection is not empty - The reason. - + An array, list or other collection implementing ICollection + The message to display in case of failure - + - Gets the argument list to be provided to the test + Assert that an array, list or other collection is not empty + An array, list or other collection implementing ICollection - + - Gets the expected result + Assert that a string is either null or equal to string.Empty + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the expected exception Type + Assert that a string is either null or equal to string.Empty + The string to be tested + The message to display in case of failure - + - Gets the FullName of the expected exception + Assert that a string is either null or equal to string.Empty + The string to be tested - + - Gets the name to be used for the test + Assert that a string is not null or empty + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the description of the test + Assert that a string is not null or empty + The string to be tested + The message to display in case of failure - + - Gets a value indicating whether this is ignored. + Assert that a string is not null or empty - true if ignored; otherwise, false. + The string to be tested - + - Gets the ignore reason. + Asserts that an object may be assigned a value of a given Type. - The ignore reason. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets a list of categories associated with this test. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Gets the property dictionary for this test + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination - + - Thrown when an assertion failed. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - + - Serialization Constructor + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Thrown when a test executes inconclusively. + Asserts that an object may be assigned a value of a given Type. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception + The expected Type. + The object under examination - + - Serialization Constructor + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - Attribute used to identify a method that is - called before any tests in a fixture are run. + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Attribute used to identify a method that is called after - all the tests in a fixture have run. The method is - guaranteed to be called, even if an exception is thrown. + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination - + - ExplicitAttribute marks a test or test fixture so that it will - only be run if explicitly executed from the gui or command line - or if it is included by use of a filter. The test will not be - run simply because an enclosing suite is run. + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - Default constructor + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Constructor with a reason + Asserts that an object may not be assigned a value of a given Type. - The reason test is marked explicit + The expected Type. + The object under examination - + - The reason test is marked explicit + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Thrown when an assertion failed. + Asserts that an object is an instance of a given type. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception + The expected Type + The object being examined + The message to display in case of failure - + - Serialization Constructor + Asserts that an object is an instance of a given type. + The expected Type + The object being examined - + - Thrown when an assertion failed. + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - + - Serialization Constructor + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Enumeration indicating how the expected message parameter is to be used + Asserts that an object is an instance of a given type. + The expected Type + The object being examined - - Expect an exact match - - - Expect a message containing the parameter string - - - Match the regular expression provided as a parameter - - - Expect a message that starts with the parameter string - - + - ExpectedExceptionAttribute + Asserts that an object is an instance of a given type. - + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Constructor for a non-specific exception + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Constructor for a given type of exception + Asserts that an object is an instance of a given type. - The type of the expected exception + The expected Type + The object being examined - + - Constructor for a given exception name + Asserts that an object is not an instance of a given type. - The full name of the expected exception + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the expected exception type + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Gets or sets the full Type name of the expected exception + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined - + - Gets or sets the expected message text + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the user message displayed in case of failure + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Gets or sets the type of match to be performed on the expected message + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined - + - Gets the name of a method to be used as an exception handler + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Attribute used to mark a test that is to be ignored. - Ignored tests result in a warning message when the - tests are run. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Constructs the attribute without giving a reason - for ignoring the test. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined - + - Constructs the attribute giving a reason for ignoring the test + Verifies that two values are equal. If they are not, then an + is thrown. - The reason for ignoring the test + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - The reason for ignoring a test + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Attribute used to mark a class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value - + - Attribute used to mark a static (shared in VB) property - that returns a list of tests. + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Attribute used to identify a method that is called - immediately after each test is run. The method is - guaranteed to be called, even if an exception is thrown. + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. + Verifies that two values are equal. If they are not, then an + is thrown. - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - + The expected value + The actual value - + - Descriptive text for this test + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - - - [TestFixture] - public class ExampleClass - {} - - - + - Default constructor + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Construct with a object[] representing a set of arguments. - In .NET 2.0, the arguments may later be separated into - type arguments and constructor arguments. + Verifies that two values are equal. If they are not, then an + is thrown. - + The expected value + The actual value - + - Descriptive text for this fixture + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - The arguments originally provided to the attribute + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Gets or sets a value indicating whether this should be ignored. + Verifies that two values are equal. If they are not, then an + is thrown. - true if ignore; otherwise, false. + The expected value + The actual value - + - Gets or sets the ignore reason. May set Ignored as a side effect. + Verifies that two values are equal. If they are not, then an + is thrown. - The ignore reason. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - RequiredAddinAttribute may be used to indicate the names of any addins - that must be present in order to run some or all of the tests in an - assembly. If the addin is not loaded, the entire assembly is marked - as NotRunnable. + Verifies that two values are equal. If they are not, then an + is thrown. + The expected value + The actual value - + - Initializes a new instance of the class. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. - The required addin. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the name of required addin. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. - The required addin name. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure - + - Marks a test to use a combinatorial join of any argument data - provided. NUnit will create a test case for every combination of - the arguments provided. This can result in a large number of test - cases and so should be used judiciously. This is the default join - type, so the attribute need not be used except as documentation. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual - + - Default constructor + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Marks a test to use pairwise join of any argument data provided. - NUnit will attempt too excercise every pair of argument values at - least once, using as small a number of test cases as it can. With - only two arguments, this is the same as a combinatorial join. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure - + - Default constructor + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual - + - Marks a test to use a sequential join of any argument data - provided. NUnit will use arguements for each parameter in - sequence, generating test cases up to the largest number - of argument values provided and using null for any arguments - for which it runs out of values. Normally, this should be - used with the same number of arguments for each parameter. + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Default constructor + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure - + - Abstract base class for attributes that apply to parameters - and supply data for the parameter. + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + The value that is expected + The actual value - + - Gets the data to be provided to the specified parameter + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - ValuesAttribute is used to provide literal arguments for - an individual parameter of a test. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - The collection of data to be returned. Must - be set by any derived attribute classes. - We use an object[] so that the individual - elements may have their type changed in GetData - if necessary. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value - + - Construct with one argument + Verifies that two values are not equal. If they are equal, then an + is thrown. - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct with two arguments + Verifies that two values are not equal. If they are equal, then an + is thrown. - - + The expected value + The actual value + The message to display in case of failure - + - Construct with three arguments + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value - + - Construct with an array of arguments + Verifies that two values are not equal. If they are equal, then an + is thrown. - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Get the collection of values to be used as arguments + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - RandomAttribute is used to supply a set of random values - to a single parameter of a parameterized test. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value - + - Construct a set of doubles from 0.0 to 1.0, - specifying only the count. + Verifies that two values are not equal. If they are equal, then an + is thrown. - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a set of doubles from min to max + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value + The message to display in case of failure - + - Construct a set of ints from min to max + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value - + - Get the collection of values to be used as arguments + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - RangeAttribute is used to supply a range of values to an - individual parameter of a parameterized test. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Construct a range of ints using default step of 1 + Verifies that two values are not equal. If they are equal, then an + is thrown. - - + The expected value + The actual value - + - Construct a range of ints specifying the step size + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a range of longs + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value + The message to display in case of failure - + - Construct a range of doubles + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value - + - Construct a range of floats + Verifies that two values are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - 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. + Verifies that two values are not equal. If they are equal, then an + is thrown. + The expected value + The actual value - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + The value that is expected + The actual value - + - Returns a ConstraintExpression that negates any - following constraint. + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. - - - - - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + The expected object + The actual object + The message to display in case of failure - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + The expected object + The actual object - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object + The message to display in case of failure - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object - + - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests two items for equality + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests that two references are the same object + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the - actual value is greater than the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the - actual value is less than the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether the actual value falls - within a specified range. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a ConstraintExpression that negates any - following constraint. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests for null + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a constraint that tests for True + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a constraint that tests for False + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests for NaN + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a constraint that tests for empty + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a constraint that tests whether a collection - contains all unique items. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that tests whether an object graph is serializable in binary format. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a constraint that tests whether an object graph is serializable in xml format. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a constraint that tests whether a collection is ordered + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - The List class is a helper class with properties and methods - that supply a number of constraints used with lists and collections. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - List.Map returns a ListMapper, which can be used to map - the original collection to another collection. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater - + - ListMapper is used to transform a collection used as an actual argument - producing another collection to be used in the assertion. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a ListMapper based on a collection + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The collection to be transformed + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Produces a collection containing all the values of a property + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The collection of property values - + The first value, expected to be less + The second value, expected to be greater - + - Helper class with static methods used to supply constraints - that operate on strings. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Helper class with properties and methods that supply - constraints that operate on exceptions. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Creates a constraint specifying the exact type of exception expected + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Creates a constraint specifying the exact type of exception expected + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Creates a constraint specifying the type of exception expected + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Creates a constraint specifying the type of exception expected + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Creates a constraint specifying an expected exception + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Creates a constraint specifying an exception with a given InnerException + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Creates a constraint specifying an expected TargetInvocationException + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Creates a constraint specifying an expected TargetInvocationException + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Creates a constraint specifying an expected TargetInvocationException + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Creates a constraint specifying that no exception is thrown + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - FactoryAttribute indicates the source to be used to - provide test cases for a test method. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Construct with the name of the factory - for use with languages - that don't support params arrays. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - An array of the names of the factories that will provide data + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct with a Type and name - for use with languages - that don't support params arrays. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The Type that will provide data - The name of the method, property or field that will provide data + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - The name of a the method, property or fiend to be used as a source + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - A Type to be used as a source + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - ValueSourceAttribute indicates the source to be used to - provide data for one parameter of a test method. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Construct with the name of the factory - for use with languages - that don't support params arrays. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The name of the data source to be used + The first value, expected to be greater + The second value, expected to be less - + - Construct with a Type and name - for use with languages - that don't support params arrays. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - The Type that will provide data - The name of the method, property or field that will provide data + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - The name of a the method, property or fiend to be used as a source + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - A Type to be used as a source + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - WUsed on a method, marks the test with a timeout value in milliseconds. - The test will be run in a separate thread and is cancelled if the timeout - is exceeded. Used on a method or assembly, sets the default timeout - for all contained test methods. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a TimeoutAttribute given a time in milliseconds + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - The timeout value in milliseconds + The first value, expected to be less + The second value, expected to be greater - + - Marks a test that must run in the STA, causing it - to run in a separate thread if necessary. - - On methods, you may also use STAThreadAttribute - to serve the same purpose. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a RequiresSTAAttribute + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Marks a test that must run in the MTA, causing it - to run in a separate thread if necessary. - - On methods, you may also use MTAThreadAttribute - to serve the same purpose. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Construct a RequiresMTAAttribute + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Marks a test that must run on a separate thread. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a RequiresThreadAttribute + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Construct a RequiresThreadAttribute, specifying the apartment + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Summary description for MaxTimeAttribute. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a MaxTimeAttribute, given a time in milliseconds. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - The maximum elapsed time in milliseconds + The first value, expected to be less + The second value, expected to be greater - + - RepeatAttribute may be applied to test case in order - to run it multiple times. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a RepeatAttribute + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - The number of times to run the test + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Provides static methods to express the assumptions - that must be met for a test to give a meaningful - result. If an assumption is not met, the test - should produce an inconclusive result. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - A Constraint expression to be applied - The actual value to test + The first value, expected to be less + The second value, expected to be greater - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested + The first value, expected to be less + The second value, expected to be greater - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + + + + Gets the number of assertions executed so far and + resets the counter to zero. + + + + + AssertionHelper is an optional base class for user tests, + allowing the use of shorter names for constraints and + asserts and avoiding conflict with the definition of + , from which it inherits much of its + behavior, in certain mock object frameworks. + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. A Constraint expression to be applied An ActualValueDelegate returning the value to be tested The message that will be displayed on failure - + Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + is satisfied and throwing an assertion exception on failure. An ActualValueDelegate returning the value to be tested A Constraint expression to be applied The message that will be displayed on failure Arguments to be used in formatting the message - + Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + is satisfied and throwing an assertion exception on failure. - A Constraint expression to be applied + A Constraint to be applied The actual value to test - + Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + is satisfied and throwing an assertion exception on failure. - A Constraint expression to be applied + A Constraint to be applied The actual value to test The message that will be displayed on failure - + Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + is satisfied and throwing an assertion exception on failure. - A Constraint expression to be applied + A Constraint to be applied The actual value to test The message that will be displayed on failure Arguments to be used in formatting the message - + Asserts that a condition is true. If the condition is false the method throws - an . + an . Works Identically to + . The evaluated condition The message to display if the condition is false Arguments to be used in formatting the message - + Asserts that a condition is true. If the condition is false the method throws - an . + an . Works Identically to + . The evaluated condition The message to display if the condition is false - + - Asserts that a condition is true. If the condition is false the - method throws an . + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to . The evaluated condition - + Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided. @@ -7403,139 +7872,157 @@ A TestDelegate to be executed A ThrowsConstraint used in the test - + - Randomizer returns a set of random values in a repeatable - way, to allow re-running of tests if necessary. + Returns a ListMapper based on a collection. + The original collection + - + - Get a randomizer for a particular member, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. + Provides static methods to express the assumptions + that must be met for a test to give a meaningful + result. If an assumption is not met, the test + should produce an inconclusive result. - + - Get a randomizer for a particular parameter, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + - + - Construct a randomizer using a random seed + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + - + - Construct a randomizer using a specified seed + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test - + - Return an array of random doubles between 0.0 and 1.0. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. - - + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure - + - Return an array of random doubles with values in a specified range. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Return an array of random ints with values in a specified range. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested - + - Get a random seed for use in creating a randomizer. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure - + - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Used to mark a field for use as a datapoint when executing a theory - within the same fixture that requires an argument of the field's Type. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test - + - Used to mark an array as containing a set of datapoints to be used - executing a theory within the same fixture that requires an argument - of the Type of the array elements. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure - + - The SpecialValue enum is used to represent TestCase arguments - that cannot be used as arguments to an Attribute. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Null represents a null value, which cannot be used as an - argument to an attriute under .NET 1.x - - - - - Summary description for SetUICultureAttribute. - + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message - + - Construct given the name of a culture + Asserts that a condition is true. If the condition is false the method throws + an . - + The evaluated condition + The message to display if the condition is false - + - Delegate used by tests that execute code and - capture any thrown exception. + Asserts that a condition is true. If the condition is false the + method throws an . + The evaluated condition - + - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + A TestDelegate to be executed + A ThrowsConstraint used in the test - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + A set of Assert methods operationg on one or more collections - + The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function. @@ -7543,7 +8030,7 @@ - + override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function @@ -7552,2676 +8039,2346 @@ - - - Helper for Assert.AreEqual(double expected, double actual, ...) - allowing code generation to work consistently. - - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - - - - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. - - The message to initialize the with. - Arguments to be used in formatting the message - - + - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. + Asserts that all items contained in collection are of the type specified by expectedType. - The message to initialize the with. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of - + - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. + Asserts that all items contained in collection are of the type specified by expectedType. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure - + - Throws an with the message and arguments - that are passed in. This is used by the other Assert functions. + Asserts that all items contained in collection are of the type specified by expectedType. - The message to initialize the with. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure Arguments to be used in formatting the message - + - Throws an with the message that is - passed in. This is used by the other Assert functions. + Asserts that all items contained in collection are not equal to null. - The message to initialize the with. + IEnumerable containing objects to be considered - + - Throws an . - This is used by the other Assert functions. + Asserts that all items contained in collection are not equal to null. + IEnumerable containing objects to be considered + The message that will be displayed on failure - + - Throws an with the message and arguments - that are passed in. This causes the test to be reported as ignored. + Asserts that all items contained in collection are not equal to null. - The message to initialize the with. + IEnumerable of objects to be considered + The message that will be displayed on failure Arguments to be used in formatting the message - + - Throws an with the message that is - passed in. This causes the test to be reported as ignored. + Ensures that every object contained in collection exists within the collection + once and only once. - The message to initialize the with. + IEnumerable of objects to be considered - + - Throws an . - This causes the test to be reported as ignored. + Ensures that every object contained in collection exists within the collection + once and only once. + IEnumerable of objects to be considered + The message that will be displayed on failure - + - Throws an with the message and arguments - that are passed in. This causes the test to be reported as inconclusive. + Ensures that every object contained in collection exists within the collection + once and only once. - The message to initialize the with. + IEnumerable of objects to be considered + The message that will be displayed on failure Arguments to be used in formatting the message - + - Throws an with the message that is - passed in. This causes the test to be reported as inconclusive. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. - The message to initialize the with. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Throws an . - This causes the test to be reported as Inconclusive. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. - A Constraint to be applied - The actual value to test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. - A Constraint to be applied - The actual value to test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. - A Constraint expression to be applied - The actual value to test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure Arguments to be used in formatting the message - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure Arguments to be used in formatting the message - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are not exactly equal. - A Constraint to be applied - The actual value to test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Asserts that expected and actual are not exactly equal. - A Constraint to be applied - The actual value to test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure - + - Asserts that a condition is true. If the condition is false the method throws - an . + Asserts that expected and actual are not exactly equal. - The evaluated condition - The message to display if the condition is false + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. - The evaluated condition + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. + Asserts that expected and actual are not equivalent. - A TestDelegate to be executed - A ThrowsConstraint used in the test + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Verifies that a delegate throws a particular exception when called. + Asserts that expected and actual are not equivalent. - A constraint to be satisfied by the exception - A TestSnippet delegate + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that expected and actual are not equivalent. - A constraint to be satisfied by the exception - A TestSnippet delegate + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered The message that will be displayed on failure + Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection contains actual as an item. - A constraint to be satisfied by the exception - A TestSnippet delegate + IEnumerable of objects to be considered + Object to be found within collection - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection contains actual as an item. - The exception Type expected - A TestSnippet delegate + IEnumerable of objects to be considered + Object to be found within collection The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection contains actual as an item. - The exception Type expected - A TestSnippet delegate + IEnumerable of objects to be considered + Object to be found within collection The message that will be displayed on failure + Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection does not contain actual as an item. - The exception Type expected - A TestSnippet delegate + IEnumerable of objects to be considered + Object that cannot exist within collection - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection does not contain actual as an item. - Type of the expected exception - A TestSnippet delegate + IEnumerable of objects to be considered + Object that cannot exist within collection The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that collection does not contain actual as an item. - Type of the expected exception - A TestSnippet delegate + IEnumerable of objects to be considered + Object that cannot exist within collection The message that will be displayed on failure + Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Asserts that superset is not a subject of subset. - Type of the expected exception - A TestSnippet delegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered - + - Verifies that a delegate throws an exception when called - and returns it. + Asserts that superset is not a subject of subset. - A TestDelegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception when called - and returns it. + Asserts that superset is not a subject of subset. - A TestDelegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered The message that will be displayed on failure + Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception when called - and returns it. + Asserts that superset is a subset of subset. - A TestDelegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Asserts that superset is a subset of subset. - The expected Exception Type - A TestDelegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Asserts that superset is a subset of subset. - The expected Exception Type - A TestDelegate + The IEnumerable superset to be considered + The IEnumerable subset to be considered The message that will be displayed on failure + Arguments to be used in formatting the message - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. - - The expected Exception Type - A TestDelegate - - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Assert that an array, list or other collection is empty - The expected Exception Type - A TestDelegate - The message that will be displayed on failure + An array, list or other collection implementing IEnumerable + The message to be displayed on failure Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Assert that an array, list or other collection is empty - The expected Exception Type - A TestDelegate - The message that will be displayed on failure + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Assert that an array,list or other collection is empty - The expected Exception Type - A TestDelegate + An array, list or other collection implementing IEnumerable - + - Verifies that a delegate does not throw an exception + Assert that an array, list or other collection is empty - A TestSnippet delegate - The message that will be displayed on failure + An array, list or other collection implementing IEnumerable + The message to be displayed on failure Arguments to be used in formatting the message - + - Verifies that a delegate does not throw an exception. + Assert that an array, list or other collection is empty - A TestSnippet delegate - The message that will be displayed on failure + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Verifies that a delegate does not throw an exception. + Assert that an array,list or other collection is empty - A TestSnippet delegate + An array, list or other collection implementing IEnumerable - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition - The message to display in case of failure + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition + An array, list or other collection implementing IEnumerable - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition - The message to display in case of failure + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure - + - Asserts that a condition is true. If the condition is false the method throws - an . + Assert that an array, list or other collection is ordered - The evaluated condition + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + Static helper class used in the constraint-based syntax + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure + Creates a new SubstringConstraint + + The value of the substring + A SubstringConstraint - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition + Creates a new CollectionContainsConstraint. + + The item that should be found. + A new CollectionContainsConstraint - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + Summary description for DirectoryAssert + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path contains actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path contains actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path contains actual as a subdirectory or + an is thrown. - The object that is to be tested + A directory to search + sub-directory asserted to exist under directory - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested + A directory to search + sub-directory asserted to exist under directory - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested - The message to display in case of failure + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Asserts that path does not contain actual as a subdirectory or + an is thrown. - The object that is to be tested + A directory to search + sub-directory asserted to exist under directory - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Summary description for FileAssert. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. - The object that is to be tested - The message to display in case of failure + + - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. - The object that is to be tested + + - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The value that is to be tested - The message to display in case of failure + The expected Stream + The actual Stream + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The value that is to be tested + The expected Stream + The actual Stream + The message to display if objects are not equal - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The expected Stream + The actual Stream - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The value that is to be tested - The message to display in case of failure + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The value that is to be tested + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal - + - Assert that a string is empty - that is equal to string.Empty + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + A file containing the value that is expected + A file containing the actual value - + - Assert that a string is empty - that is equal to string.Empty + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The string to be tested - The message to display in case of failure + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Assert that a string is empty - that is equal to string.Empty + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The string to be tested + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal - + - Assert that an array, list or other collection is empty + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message + The path to a file containing the value that is expected + The path to a file containing the actual value - + - Assert that an array, list or other collection is empty + Asserts that two Streams are not equal. If they are equal + an is thrown. - An array, list or other collection implementing ICollection - The message to display in case of failure + The expected Stream + The actual Stream + The message to be displayed when the two Stream are the same. + Arguments to be used in formatting the message - + - Assert that an array, list or other collection is empty + Asserts that two Streams are not equal. If they are equal + an is thrown. - An array, list or other collection implementing ICollection + The expected Stream + The actual Stream + The message to be displayed when the Streams are the same. - + - Assert that a string is not empty - that is not equal to string.Empty + Asserts that two Streams are not equal. If they are equal + an is thrown. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The expected Stream + The actual Stream - + - Assert that a string is not empty - that is not equal to string.Empty + Asserts that two files are not equal. If they are equal + an is thrown. - The string to be tested - The message to display in case of failure + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Assert that a string is not empty - that is not equal to string.Empty + Asserts that two files are not equal. If they are equal + an is thrown. - The string to be tested + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal - + - Assert that an array, list or other collection is not empty + Asserts that two files are not equal. If they are equal + an is thrown. - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message + A file containing the value that is expected + A file containing the actual value - + - Assert that an array, list or other collection is not empty + Asserts that two files are not equal. If they are equal + an is thrown. - An array, list or other collection implementing ICollection - The message to display in case of failure + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Assert that an array, list or other collection is not empty + Asserts that two files are not equal. If they are equal + an is thrown. - An array, list or other collection implementing ICollection + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal - + - Assert that a string is either null or equal to string.Empty + Asserts that two files are not equal. If they are equal + an is thrown. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The path to a file containing the value that is expected + The path to a file containing the actual value - + - Assert that a string is either null or equal to string.Empty + GlobalSettings is a place for setting default values used + by the framework in performing asserts. - The string to be tested - The message to display in case of failure - + - Assert that a string is either null or equal to string.Empty + Default tolerance for floating point equality - The string to be tested - + - Assert that a string is not null or empty + Helper class with properties and methods that supply + a number of constraints used in Asserts. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Assert that a string is not null or empty + 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. - The string to be tested - The message to display in case of failure - + - Assert that a string is not null or empty + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - The string to be tested - + - Asserts that an object may be assigned a value of a given Type. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may be assigned a value of a given Type. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - The expected Type. - The object under examination - The message to display in case of failure - + - Asserts that an object may be assigned a value of a given Type. + Returns a ConstraintExpression that negates any + following constraint. - The expected Type. - The object under examination - + - Asserts that an object may be assigned a value of a given Type. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may be assigned a value of a given Type. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. - The expected Type. - The object under examination - The message to display in case of failure - + - Asserts that an object may be assigned a value of a given Type. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. - The expected Type. - The object under examination - + - Asserts that an object may not be assigned a value of a given Type. + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may not be assigned a value of a given Type. + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. - The expected Type. - The object under examination - The message to display in case of failure - + - Asserts that an object may not be assigned a value of a given Type. + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. - The expected Type. - The object under examination - + - Asserts that an object may not be assigned a value of a given Type. + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may not be assigned a value of a given Type. + Interface implemented by a user fixture in order to + validate any expected exceptions. It is only called + for test methods marked with the ExpectedException + attribute. - The expected Type. - The object under examination - The message to display in case of failure - + - Asserts that an object may not be assigned a value of a given Type. + Method to handle an expected exception - The expected Type. - The object under examination + The exception to be handled - + - Asserts that an object is an instance of a given type. + Helper class with properties and methods that supply + a number of constraints used in Asserts. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests two items for equality - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests that two references are the same object - The expected Type - The object being examined - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is greater than the suppled argument - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - The expected Type - The object being examined - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is less than the suppled argument - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is an instance of a given type. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The expected Type - The object being examined - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The expected Type - The object being examined - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The expected Type - The object being examined - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is not an instance of a given type. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The expected Type - The object being examined - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests whether the actual value falls + within a specified range. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a ConstraintExpression that negates any + following constraint. - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests for null - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a constraint that tests for True - The expected value - The actual value - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests for False - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests for NaN - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests for empty - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests whether a collection + contains all unique items. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests whether an object graph is serializable in binary format. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Returns a constraint that tests whether an object graph is serializable in xml format. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. + Returns a constraint that tests whether a collection is ordered - The value that is expected - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. + The Iz class is a synonym for Is intended for use in VB, + which regards Is as a keyword. - The value that is expected - The actual value - The message to display in case of failure - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. + The List class is a helper class with properties and methods + that supply a number of constraints used with lists and collections. - The value that is expected - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + List.Map returns a ListMapper, which can be used to map + the original collection to another collection. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + ListMapper is used to transform a collection used as an actual argument + producing another collection to be used in the assertion. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a ListMapper based on a collection - The expected value - The actual value + The collection to be transformed - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Produces a collection containing all the values of a property - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + The collection of property values + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Randomizer returns a set of random values in a repeatable + way, to allow re-running of tests if necessary. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Get a randomizer for a particular member, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. - The expected value - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Get a randomizer for a particular parameter, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a randomizer using a random seed - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a randomizer using a specified seed - The expected value - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Return an array of random doubles between 0.0 and 1.0. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Return an array of random doubles with values in a specified range. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Return an array of random ints with values in a specified range. - The expected value - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Get a random seed for use in creating a randomizer. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + The SpecialValue enum is used to represent TestCase arguments + that cannot be used as arguments to an Attribute. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Null represents a null value, which cannot be used as an + argument to an attriute under .NET 1.x - The expected value - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Basic Asserts on strings. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. - The expected value - The actual value - The message to display in case of failure + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. - The expected value - The actual value + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Asserts that a string is found within another string. - The expected value - The actual value + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Asserts that a string is found within another string. - The expected value - The actual value + The expected string + The string to be examined The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Asserts that a string is found within another string. - The expected value - The actual value + The expected string + The string to be examined - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Asserts that a string is not found within another string. - The value that is expected - The actual value + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Asserts that a string is found within another string. - The value that is expected - The actual value + The expected string + The string to be examined The message to display in case of failure - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Asserts that a string is found within another string. - The value that is expected - The actual value + The expected string + The string to be examined - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + Asserts that a string starts with another string. - The expected object - The actual object + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + Asserts that a string starts with another string. - The expected object - The actual object + The expected string + The string to be examined The message to display in case of failure - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + Asserts that a string starts with another string. - The expected object - The actual object + The expected string + The string to be examined - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + Asserts that a string does not start with another string. - The expected object - The actual object + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + Asserts that a string does not start with another string. - The expected object - The actual object + The expected string + The string to be examined The message to display in case of failure - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + Asserts that a string does not start with another string. - The expected object - The actual object + The expected string + The string to be examined - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string ends with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string ends with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string ends with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not end with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not end with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not end with another string. - The first value, expected to be greater - The second value, expected to be less + The expected string + The string to be examined - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are equal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are equal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are equal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are not equal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are Notequal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that two strings are not equal, without regard to case. - The first value, expected to be greater - The second value, expected to be less + The expected string + The actual string - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string matches an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be matched + The actual string The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string matches an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be matched + The actual string The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string matches an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be matched + The actual string - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not match an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be used + The actual string The message to display in case of failure - Array of objects to be used in formatting the message + Arguments used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not match an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be used + The actual string The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Asserts that a string does not match an expected regular expression pattern. - The first value, expected to be greater - The second value, expected to be less + The regex pattern to be used + The actual string - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The TestCaseData class represents a set of arguments + and other parameter info to be used for a parameterized + test case. It provides a number of instance modifiers + for use in initializing the test case. + + Note: Instance modifiers are getters that return + the same instance after modifying it's state. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The argument list to be provided to the test - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The expected result to be returned - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The expected exception Type - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The FullName of the expected exception - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The name to be used for the test - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + The description of the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + A dictionary of properties, used to add information + to tests without requiring the class to change. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + If true, indicates that the test case is to be ignored - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + The reason for ignoring a test case - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The arguments. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater + The argument. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + The first argument. + The second argument. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The first argument. + The second argument. + The third argument. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Sets the expected result for the test - The first value, expected to be less - The second value, expected to be greater + The expected result + A modified TestCaseData - - - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + + + Sets the expected exception type for the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + Type of the expected exception. + The modified TestCaseData instance - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Sets the expected exception type for the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + FullName of the expected exception. + The modified TestCaseData instance - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Sets the name of the test case - The first value, expected to be less - The second value, expected to be greater + The modified TestCaseData instance - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Sets the description for the test case + being constructed. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + The description. + The modified TestCaseData instance. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Applies a category to the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Applies a named property to the test - The first value, expected to be less - The second value, expected to be greater + + + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Applies a named property to the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + + + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Applies a named property to the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + + + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Ignores this TestCase. - The first value, expected to be less - The second value, expected to be greater + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Ignores this TestCase, specifying the reason. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + The reason. + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the argument list to be provided to the test - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the expected result - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the expected exception Type - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the FullName of the expected exception - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the name to be used for the test - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets the description of the test - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets a value indicating whether this is ignored. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure + true if ignored; otherwise, false. - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets the ignore reason. - The first value, expected to be greater - The second value, expected to be less + The ignore reason. - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets a list of categories associated with this test. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets the property dictionary for this test - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Provide the context information of the current test - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Constructs a TestContext using the provided context dictionary - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message + A context dictionary - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Get the current test context. This is created + as needed. The user may save the context for + use within a test, but it should not be used + outside the test for which it is created. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets a TestAdapter representing the currently executing test in this context. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets a ResultAdapter representing the current result for the test + executing in this context. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Gets the current directory for this TestContext - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + TestAdapter adapts a Test for consumption by + the user test code. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Constructs a TestAdapter for this context - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message + The context dictionary - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The name of the test. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The FullName of the test - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The properties of the test. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + ResultAdapter adapts a TestResult for consumption by + the user test code. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Construct a ResultAdapter for a context - The first value, expected to be greater - The second value, expected to be less + The context holding the result - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The TestState of current test. This maps to the ResultState + used in nunit.core and is subject to change in the future. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The TestStatus of current test. This enum will be used + in future versions of NUnit and so is to be preferred + to the TestState value. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The ResultState enum indicates the result of running a test - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The result is inconclusive - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The test was not runnable. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The test has been skipped. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test has been ignored. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test succeeded - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test failed - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test encountered an unexpected exception - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test was cancelled by the user - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The TestStatus enum indicates the result of running a test - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test was inconclusive - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test has skipped - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test succeeded - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + The test failed - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Helper class with static methods used to supply constraints + that operate on strings. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + TextMessageWriter writes constraint descriptions and messages + in displayable form as a text stream. It tailors the display + of individual message components to form the standard message + format of NUnit assertion failure messages. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Prefix used for the expected value line of a message - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Prefix used for the actual value line of a message - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Length of a message prefix - The first value, expected to be less - The second value, expected to be greater - + - Asserts that an object is contained in a list. + Construct a TextMessageWriter - The expected object - The list to be examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is contained in a list. + Construct a TextMessageWriter, specifying a user message + and optional formatting arguments. - The expected object - The list to be examined - The message to display in case of failure + + - + - Asserts that an object is contained in a list. + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. - The expected object - The list to be examined + The indentation level of the message + The message to be written + Any arguments used in formatting the message - + - Gets the number of assertions executed so far and - resets the counter to zero. + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + The constraint that failed - + - Static helper class used in the constraint-based syntax + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + The expected value + The actual value causing the failure - + - Creates a new SubstringConstraint + Display Expected and Actual lines for given values, including + a tolerance value on the expected line. - The value of the substring - A SubstringConstraint + The expected value + The actual value causing the failure + The tolerance within which the test was made - + - Creates a new CollectionContainsConstraint. + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. - The item that should be found. - A new CollectionContainsConstraint + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in string comparisons + If true, clip the strings to fit the max line length - + - Attribute used to apply a category to a test + Writes the text for a connector. + The connector. - + - The name of the category + Writes the text for a predicate. + The predicate. - + - Construct attribute for a given category based on - a name. The name may not contain the characters ',', - '+', '-' or '!'. However, this is not checked in the - constructor since it would cause an error to arise at - as the test was loaded without giving a clear indication - of where the problem is located. The error is handled - in NUnitFramework.cs by marking the test as not - runnable. + Write the text for a modifier. - The name of the category + The modifier. - + - Protected constructor uses the Type name as the name - of the category. + Writes the text for an expected value. + The expected value. - + - The name of the category + Writes the text for an actual value. + The actual value. - + - The TestStatus enum indicates the result of running a test + Writes the text for a generalized value. + The value. - + - The test was inconclusive + Writes the text for a collection value, + starting at a particular point, to a max length + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write - + - The test has skipped + Write the generic 'Expected' line for a constraint + The constraint that failed - + - The test succeeded + Write the generic 'Expected' line for a given value + The expected value - + - The test failed + Write the generic 'Expected' line for a given value + and tolerance. + The expected value + The tolerance within which the test was made - + - Provide the context information of the current test + Write the generic 'Actual' line for a constraint + The constraint for which the actual value is to be written - + - The TestState of current test. This maps to the ResultState - used in nunit.core and is subject to change in the future. + Write the generic 'Actual' line for a given value + The actual value causing a failure - + - The TestStatus of current test. This enum will be used - in future versions of NUnit and so is to be preferred - to the TestState value. + Gets or sets the maximum line length for this writer - + - The name of the currently executing test. If no - test is running, the name of the last test run. + Helper class with properties and methods that supply + constraints that operate on exceptions. - + - The properties of the currently executing test - or, if no test is running, of the last test run. + Creates a constraint specifying the exact type of exception expected - + - The ResultState enum indicates the result of running a test + Creates a constraint specifying the exact type of exception expected - + - The result is inconclusive + Creates a constraint specifying the type of exception expected - + - The test was not runnable. + Creates a constraint specifying the type of exception expected - + - The test has been skipped. + Creates a constraint specifying an expected exception - + - The test has been ignored. + Creates a constraint specifying an exception with a given InnerException - + - The test succeeded + Creates a constraint specifying an expected TargetInvocationException - + - The test failed + Creates a constraint specifying an expected TargetInvocationException - + - The test encountered an unexpected exception + Creates a constraint specifying an expected TargetInvocationException - + - The test was cancelled by the user + Creates a constraint specifying that no exception is thrown