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
-
+