MbUnit
A that registers MbUnit as a tool when the test assembly contains a reference to the MbUnit assembly.
Gets information about the tools that are used by the specified test assembly. The tool information will be included in the report as part of the framework node that contains the assembly.
This method is used by authors of tools that are derived from the to provide brand and version information about the tool so that it will be visible to end users.
If no tools are referenced by the assembly, it will be ignored by the .
The test assembly
The tool information
Array Assertion class This is a and so cannot be inherited or instantiated.
Verifies that both array have the same dimension and elements.
The assembly fixture attribute is applied to a class that contains setup and teardown methods that are to be applied at the assembly level. Conceptually, the adds new behavior to an assembly-level test fixture that contains all of the test fixtures within the assembly.
The following attributes are typically used within an assembly fixture: - : Performs setup activities before any test fixtures within the assembly are executed.
- : Performs teardown activities after all test fixtures within the assembly are executed.
- : Performs setup activities before each test fixture within the assembly is executed.
- : Performs teardown activities after eacj test fixture within the assembly is executed.
It is also possible to use other attributes as with an ordinary . An assembly fixture also supports data binding. When data binding is used on an assembly fixture, it will cause all test fixtures within the assembly to run once for each combination of data values used.
Consumes the and applies its contributions to the .
This method is used to declare new tests, test parameters and other components and add them to a containing test that was defined by some other .
For example, when enumerating tests, the will call the method of all patterns associated with the public types in an assembly. Some of these patterns will create new test fixture objects and add them as children of the containing assembly-level test. They will then call for each of the other patterns defined by this . A test fixture pattern will then typically recurse into the fixture to apply contributions defined by patterns associated with methods, fields, properties, events, constructors and generic type parameters.
The containing test builder
The code element to process
If true, skips generating child tests. Instead the children may be populated on demand using . The implementation may safely ignore the value of this flag so long as subsequent attempts to populate children on demand have no adverse side-effects.
Applies semantic actions to the member of a test to set the test's runtime behavior.
This method is called after .
The test
The test type
Registers a custom assembly resolver. This class cannot be inherited.
Gets the assembly resolver type.
Performs early initialization for the specified assembly.
The top level test builder that will contain the assembly-level test
The assembly to process
Assertion class This is a and so cannot be inherited or instantiated.
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 equals then an is thrown.
The expected value
The actual value
The maximum acceptable difference between the the expected and the actual
The message printed out upon 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 equals then an is thrown.
The expected value
The actual value
The maximum acceptable difference between the the expected and the actual
Verifies that two floats are equal considering a delta. If the expected value is infinity then the delta value is ignored. If they are not equals then an is thrown.
The message printed out upon failure
The expected value
The actual value
The maximum acceptable difference between the the expected and the actual
Verifies that two floats are equal considering a delta. If the expected value is infinity then the delta value is ignored. If they are not equals then an is thrown.
The expected value
The actual value
The maximum acceptable difference between the the expected and the actual
Verifies that two decimals are equal. If they are not equals then an is thrown.
The message printed out upon failure
The expected value
The actual value
Verifies that two decimals are equal. If they are not equals then an is thrown.
The expected value
The actual value
The format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Verifies that two decimals are equal. If they are not equals then an is thrown.
The expected value
The actual value
Verifies that two ints are equal. If they are not equals then an is thrown.
The message printed out upon failure
The expected value
The actual value
Verifies that two ints are equal. If they are not equals then an is thrown.
The expected value
The actual value
The format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Verifies that two ints are equal. If they are not equals then an is thrown.
The expected value
The actual value
Verifies that two objects are equal. Two objects are considered equal if both are null, or if both have the same value. All non-numeric types are compared by using the Equals method. If they are not equal an is thrown.
The value that is expected
The actual value
The format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Verifies that two objects are equal. Two objects are considered equal if both are null, or if both have the same value. All non-numeric types are compared by using the Equals method. If they are not equal an is thrown.
The value that is expected
The actual value
The message to display if objects are not equal
Verifies that two objects are equal. Two objects are considered equal if both are null, or if both have the same value. All non-numeric types are compared by using the Equals method. If they are not equal an is thrown.
The value that is expected
The actual value
Asserts that two objects are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two objects are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two objects are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two ints are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two ints are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two ints are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two uints are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two uints are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two uints are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two decimals are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two decimals are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two decimals are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two floats are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two floats are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two floats are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two doubles are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the two objects are the same object.
Arguments to be used in formatting the message
Asserts that two doubles are not equal. If they are equal an is thrown.
The expected object
The actual object
The message to be displayed when the objects are the same
Asserts that two doubles are not equal. If they are equal an is thrown.
The expected object
The actual object
Asserts that two objects refer to the same object. If they are not the same an is thrown.
The message to be printed when the two objects are not the same object.
The expected object
The actual object
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 format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Asserts that two objects refer to the same object. If they are not the same an is thrown.
The expected object
The actual object
Verifies that the value of the property described by is the same in both ojects.
Property describing the value to test
Reference object
Actual object
Index of the property.
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
Asserts that is between and .
The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.
Throws an with the message that is passed in. This is used by the other Assert functions.
The format of the message to initialize the with.
An array containing zero or more objects to format.
Throws an with the message that is passed in. This is used by the other Assert functions.
The message to initialize the with.
Throws an with the message that is passed in. This is used by the other Assert functions.
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
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 they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
The message that will be displayed on failure
Verifies that the first value is greater than the second value. If they are not, then an is thrown.
The first value, expected to be greater
The second value, expected to be less
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Verifies that is strictly greater than .
Asserts that is in the dic .
Asserts that is in the dic .
Asserts that is in the list .
Asserts that is in the list .
Asserts that is in the enumerable collection .
Asserts that is in the enumerable collection .
Asserts that an object may be assigned a value of a given Type.
The expected Type.
The object under examination
Asserts that an object may be assigned a value of a given Type.
The expected Type.
The object under examination
The messge to display in case of failure
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
Assert that a string is empty - that is equal to string.Empty
The string to be tested
The message to be displayed on failure
Arguments to be used in formatting the message
Assert that a string is empty - that is equal to string.Emtpy
The string to be tested
The message to be displayed on failure
Assert that a string is empty - that is equal to string.Emtpy
The string to be tested
Assert that an array, list or other collection is empty
An array, list or other collection implementing ICollection
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
An array, list or other collection implementing ICollection
The message to be displayed on failure
Assert that an array,list or other collection is empty
An array, list or other collection implementing ICollection
Asserts that a condition is false. If the condition is true the method throws an .
The evaluated condition
The format of the message to display if the condition is false, containing zero or more format items.
An array containing zero or more objects to format.
Asserts that a condition is false. If the condition is true the method throws an .
The evaluated condition
Asserts that an object is an instance of a given type.
The expected Type
The object being examined
Asserts that an object is an instance of a given type.
The expected Type
The object being examined
A message to display in case of failure
Asserts that an object is an instance of a given type.
The expected Type
The object being examined
A message to display in case of failure
An array of objects to be used in formatting the message
Verifies that the double is passed is an NaN value. If the object is not NaN then an is thrown.
The value that is to be tested
The message to be displayed when the object is not null
Arguments to be used in formatting the message
Verifies that the double is passed is an NaN value. If the object is not NaN then an is thrown.
The object that is to be tested
The message to be displayed when the object is not null
Verifies that the double is passed is an NaN value. If the object is not NaN then an is thrown.
The object that is to be tested
Asserts that an object may not be assigned a value of a given Type.
The expected Type.
The object under examination
Asserts that an object may not be assigned a value of a given Type.
The expected Type.
The object under examination
The messge to display in case of failure
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
Assert that a string is empty - that is equal to string.Emtpy
The string to be tested
The message to be displayed on failure
Arguments to be used in formatting the message
Assert that a string is empty - that is equal to string.Emtpy
The string to be tested
The message to be displayed on failure
Assert that a string is empty - that is equal to string.Emtpy
The string to be tested
Assert that an array, list or other collection is empty
An array, list or other collection implementing ICollection
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
An array, list or other collection implementing ICollection
The message to be displayed on failure
Assert that an array,list or other collection is empty
An array, list or other collection implementing ICollection
Asserts that an object is not an instance of a given type.
The expected Type
The object being examined
Asserts that an object is not an instance of a given type.
The expected Type
The object being examined
A message to display in case of failure
Asserts that an object is not an instance of a given type.
The expected Type
The object being examined
A message to display in case of failure
An array of objects to be used in formatting the message
Verifies that the object that is passed in is not equal to null If the object is not null then an is thrown.
The object that is to be tested
The format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Verifies that the object that is passed in is not equal to null If the object is null then an is thrown with the message that is passed in.
The object that is to be tested
The message to initialize the with.
Verifies that the object that is passed in is not equal to null If the object is not null then an is thrown.
The object that is to be tested
Verifies that the object that is passed in is equal to null If the object is null then an is thrown.
The object that is to be tested
The format of the message to display if the assertion fails, containing zero or more format items.
An array containing zero or more objects to format.
Verifies that the object that is passed in is equal to null If the object is null then an is thrown with the message that is passed in.
The object that is to be tested
The message to initialize the with.
Verifies that the object that is passed in is equal to null If the object is null then an is thrown.
The object that is to be tested
Asserts that a condition is true. If the condition is false the method throws an .
The evaluated condition
The format of the message to display if the condition is false, containing zero or more format items.
An array containing zero or more objects to format.
Asserts that a condition is true. If the condition is false the method throws an .
The evaluated condition
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
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 that will be displayed on failure
Arguments 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.
The first value, expected to be less
The second value, expected to be greater
The message that will be displayed on failure
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
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is lower equal than .
Verifies that is lower equal than .
Verifies that is lower equal than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Verifies that is strictly lower than .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not between and .
Asserts that is not in the dic .
Asserts that is not in the dic .
Asserts that is not in the list .
Asserts that is not in the list .
Asserts that is not in the enumerable collection .
Asserts that is not in the enumerable collection .
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 exception type used to signal MbUnit assertion failures.
Associates the author's name and email address with a test fixture, test method, test parameter or other test component.
Gets or sets the author's email address or an empty string if none.
Gets or sets the author's homepage or an empty string if none.
Gets or sets the author's name.
Applies metadata contributions the metadata map of a test component.
The metadata map
The bind attribute overrides the default binding rules for a test parameter by specifying a different data source, a binding path or an index. At most one such attribute may appear on any given test parameter.
Gets the binding index, or null if none.
Gets the binding path, or null if none.
Gets or sets the name of the data source to bind, or null to bind the default data source for the test parameter.
The default source for a test parameter is the anonymous data source defined within the scope of the test parameter or by its enclosing test.
Applies decorations to a .
A typical use of this method is to augment the test parameter with additional metadata or to add additional behaviors to the test parameter.
The test builder
The slot
Associates a category name with a test fixture, test method, test parameter or other test component. The category name can be used to classify tests and build test suites of related tests.
Gets the category name.
Applies metadata contributions the metadata map of a test component.
The metadata map
Assertion helper for the class. This is a and so cannot be inherited or instantiated.
Asserts that all items contained in collection are of the type specified by expectedType.
ICollection of 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.
ICollection of objects to be considered
System.Type that all objects in collection must be instances of
The message that will be displayed on failure
Asserts that all items contained in collection are of the type specified by expectedType.
ICollection of 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
Asserts that all items contained in collection are not equal to null.
ICollection of objects to be considered
Asserts that all items contained in collection are not equal to null.
ICollection of objects to be considered
The message that will be displayed on failure
Asserts that all items contained in collection are not equal to null.
ICollection 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.
ICollection of objects to be considered
Ensures that every object contained in collection exists within the collection once and only once.
ICollection of objects to be considered
The message that will be displayed on failure
Ensures that every object contained in collection exists within the collection once and only once.
ICollection of objects to be considered
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the property value of and are equal.
Instance containing the expected value.
Instance containing the tested value.
Verifies that the property value of is equal to .
Expected value.
Instance containing the tested value.
Verifies that and are equal collections. Element count and element wize equality is verified.
Expected value.
Instance containing the tested value.
Verifies that and are equal collections. Element count and element wize equality is verified.
Expected value.
Instance containing the tested value.
Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
The first ICollection of objects to be considered
The second ICollection 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 ICollection of objects to be considered
The second ICollection 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.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the property value of and are equal.
Instance containing the expected value.
Instance containing the tested value.
Verifies that the property value of is equal to .
Expected value.
Instance containing the tested value.
Asserts that expected and actual are not exactly equal.
The first ICollection of objects to be considered
The second ICollection 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.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The IComparer to use in comparing objects from each ICollection
Asserts that expected and actual are not exactly equal.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The message that will be displayed 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.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The IComparer to use in comparing objects from each ICollection
The message that will be displayed on failure
Asserts that expected and actual are not exactly equal.
The first ICollection of objects to be considered
The second ICollection 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. If comparer is not null then it will be used to compare the objects.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The IComparer to use in comparing objects from each ICollection
The message that will be displayed on failure
Arguments to be used in formatting the message
Asserts that expected and actual are not equivalent.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
Asserts that expected and actual are not equivalent.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The message that will be displayed on failure
Asserts that expected and actual are not equivalent.
The first ICollection of objects to be considered
The second ICollection of objects to be considered
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the property value of and are equal.
Instance containing the expected value.
Instance containing the tested value.
Verifies that the property value of is equal to .
Expected value.
Instance containing the tested value.
Asserts that collection contains actual as an item.
ICollection of objects to be considered
Object to be found within collection
Asserts that collection contains actual as an item.
ICollection 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.
ICollection 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
Asserts that collection does not contain actual as an item.
ICollection of objects to be considered
Object that cannot exist within collection
Asserts that collection does not contain actual as an item.
ICollection of objects to be considered
Object that cannot exist within collection
The message that will be displayed on failure
Asserts that collection does not contain actual as an item.
ICollection 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 the property is synchronized with the number of iterated elements.
Collection to test
is a null reference (Nothing in Visual Basic)
Asserts that subset is not a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
Asserts that subset is not a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
The message that will be displayed on failure
Asserts that subset is not a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the property value is false.
Instance containing the expected value.
Asserts that subset is a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
Asserts that subset is a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
The message that will be displayed on failure
Asserts that subset is a subset of superset.
The ICollection subset to be considered
The ICollection superset to be considered
The message that will be displayed on failure
Arguments to be used in formatting the message
Verifies that the property value is true.
Instance containing the expected value.
Provides a column of literal values as a data source.
This attribute is equivalent to providing a sequence of values using with 1 element in each.
Gets the array of values in the column.
Populates the data source with the contributions of this attribute.
The data source
The code element
The abstract base type for MbUnit attributes that contribute values to data sources along with metadata such a description or expected exception type. This class is and so cannot be instantiated.
Gets or sets a description of the values provided by the data source.
Gets or sets the type of exception that should be thrown when the values provided by the data source are consumed by test.
Gets the metadata for the data source.
The metadata keys and values
Creates a dependency from this test assembly, test fixture or test method on all tests in some other test assembly. If any test in the other test assembly test fails then this test will not run. Moreover, the dependency forces this test to run after those it depends upon.
Gets the dependent test assembly name.
Gets the code element that declares the tests on which this test should depend.
The test builder
The code element representing the dependency
Creates a dependency from this test assembly, test fixture or test method on some other test fixture or test method. If the other test fixture or test method fails then this test will not run. Moreover, the dependency forces this test to run after those it depends upon.
Gets the dependent test fixture type, or null if the dependency is on another test method of this test fixture.
Gets the dependent test method name, or null if the dependency is on the whole test fixture.
Gets the code element that declares the tests on which this test should depend.
The test builder
The code element representing the dependency
Associates a description with a test fixture, test method, test parameter or other test component. The description provides useful documentation to users when browsing the tests.
Gets or sets the description.
Applies metadata contributions the metadata map of a test component.
The metadata map
Declares that the associated test method is expected to throw an . The expected contents of the exception message may optionally be specified.
Declares that the associated test method is expected to throw an . The expected contents of the exception message may optionally be specified.
Declares that the associated test method is expected to throw an . The expected contents of the exception message may optionally be specified.
Declares that the associated test is expected to throw an exception of a particular type. The expected contents of the exception message may optionally be specified.
Gets the expected exception type.
Gets or sets the expected exception message, or null if none specified.
Applies decorations to a method-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The method
Indicates that a test should only be run explicitly. The test will still appear in the test results but it will not run unless it is explicitly selected for execution.
A test is considered to be explicitly selected when the filter used to run the tests matches the test or its descendants but none of its ancestors. For example, if the filter matches a test case but not its containing test fixture then the test case will be deemed to be explicitly selected. Otherwise the test case will be implicitly selected by virtue of the fact that the filter matched one of its ancestors.
This attribute can be used to exclude from normal execution any tests that are particularly expensive or require manual supervision by an operator.
Gets the reason that the test should only run explicitly.
Applies decorations to a method or type-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The code element
The fixture initializer attribute is applied to a method that is to be invoked after a fixture instance has been created to complete its initialization.
This attribute provides a mechanism for completing the initialization of a fixture if the work cannot be completed entirely within the constructor. For example, data binding might be used to set fields and property values of the fixture instance. Consequently post-construction initialization may be required.
allows initialization to occur earlier in the test lifecycle than .
Applies decorations to the containing .
The containing test builder
The code element
The fixture set up attribute is applied to a method that is to be invoked when a fixture instance is being set up before any of its tests are executed.
Applies decorations to the containing .
The containing test builder
The code element
The fixture tear down attribute is applied to a method that is to be invoked when a fixture instance is being torn down after all of its tests have been executed.
Applies decorations to the containing .
The containing test builder
The code element
Assertion class This class cannot be inherited.
Assert that an array, list or other collection is empty
An array, list or other collection implementing ICollection
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
An array, list or other collection implementing ICollection
The message to be displayed on failure
Assert that an array,list or other collection is empty
An array, list or other collection implementing ICollection
Assert that an array, list or other collection is empty
An array, list or other collection implementing ICollection
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
An array, list or other collection implementing ICollection
The message to be displayed on failure
Assert that an array,list or other collection is empty
An array, list or other collection implementing ICollection
Defines names as aliases for the columns in an indexed data source such as those that have been populated by or . The names may subsequently be used in data binding expressions in place of their corresponding column indices.
Gets the array of column names.
Populates the data source with the contributions of this attribute.
The data source
The code element
Indicates that a test is to be ignored by the framework and will not be run. The test will still appear in test reports along with the reason that it was ignored, if provided.
This attribute can be used to disable tests that are broken or expensive without commenting them out or removing them from the source code.
Gets the reason that the test has been ignored, or an empty string if none.
Applies decorations to a method or type-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The code element
Associates a with a test fixture, test method, test parameter or other test component.
Gets or sets the importance.
Applies metadata contributions the metadata map of a test component.
The metadata map
This is an interim assertion class intended to be used within MbUnit v2 tests. We'll refactor these assertions when we move to Gallio. This is a and so cannot be inherited or instantiated.
Asserts that all of the values in the objects array are distinct by equality and hashcode.
The type of object
The objects
Thrown if is null
Asserts that the specified block of code does not throw an exception.
The block of code to run
Asserts that the specified block of code does not throw an exception.
The block of code to run
The failure message
Asserts that the specified block of code does not throw an exception.
The block of code to run
The failure message format string
The failure message arguments
Evaluates an assertion with matched pairs drawn from each dictionary that have identical keys. Fails if the collections have different sizes or if one is null but not the other.
The key type
The expected value type
The expected value type
The enumeration of expected values
The enumeration of actual values
The assertion to evaluate over all pairs
Evaluates an assertion with matched pairs drawn from each dictionary that have identical keys. Fails if the collections have different sizes or if one is null but not the other.
The key type
The expected value type
The actual value type
The enumeration of expected values
The enumeration of actual values
The assertion to evaluate over all pairs
Evaluates an assertion with matched pairs drawn from each collection. Fails if the collections have different sizes or if one is null but not the other.
The expected value type
The actual value type
The enumeration of expected values
The enumeration of actual values
The assertion to evaluate over all pairs
Associates custom metadata with a test fixture, test method, test parameter or other test component. The metadata can be used for documentation, classification or dynamic customization of tests.
Gets the metadata key.
Gets the metadata value.
Applies metadata contributions the metadata map of a test component.
The metadata map
The mixin attribute combines tests, test parameters, setup/teardown methods, data sources and other test elements declared by a target mixin class into a host test. The target mixin class is incorporated as a surrogate of the host test and participates in all phases of the test lifecycle including data binding, setup/teardown and test execution.
At runtime, an instance of the target class is created and injected into the host by way of the property, field, constructor parameter or method parameter to which the mixin attribute was applied.
Gets the mixin type.
Declares that a property, field or parameter is a test parameter and specifies its properties. At most one attribute of this type may appear on any given test fixture property or field. If the attribute is omitted from test method parameters and test fixture constructor parameters the parameter will be declared with default values (which are usually just fine).
Gets or sets the zero-based index of the parameter. The index is used instead of the parameter name in unlabeled table-like data sources (such as row-tests and headerless CSV files) to select the column to which the parameter will be bound.
The default value is null which causes the parameter's index to be set to 0 for fields and properties or the parameter's actual positional index for the combined list of generic parameters and method parameters with the generic parameters counted first followed by the method parameters in left-to-right order.
Thrown if is less than 0
Gets or sets the name of the parameter. If set to null, the parameter is named the same as the property, field or parameter to which the attribute has been applied.
The default value is null.
Initializes a test parameter after it has been added to the containing test.
The test parameter builer
The slot
Indicates that a test has pending prerequisites so it will not be run. The test will still appear in test reports along with an explanation of the reason it it pending, if provided.
This attribute can be used to disable tests that cannot run because the subject under test is missing certain prerequisite functionality. It may also serve as a placeholder for test that have yet to be implemented.
Gets the reason that the test is pending.
Applies decorations to a method or type-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The code element
Reflection Assertion class This is a and so cannot be inherited or instantiated.
Asserts that the type has a public instance constructor with a signature defined by parameters.
Asserts that the type has a constructor, with the specified bindind flags, with a signature defined by parameters.
Asserts that the type has a default public constructor
Asserts that the type has a public field method with a signature defined by parameters.
Asserts that the type has a field, with the specified bindind flags, with a signature defined by parameters.
Asserts that the type has a public instance method with a signature defined by parameters.
Asserts that the type has a method, with the specified bindind flags, with a signature defined by parameters.
Asserts whether an instance of the can be assigned from an instance of .
Parent instance.
Child instance.
Asserts whether is an instance of the .
instance.
Child instance.
Provides a row of literal values as a data source.
Gets the array of values in the row.
Populates the data source with the contributions of this attribute.
The data source
The code element
Security Assertion class This is a and so cannot be inherited or instantiated.
Asserts that is authenticated.
Asserts that is not authenticated.
Asserts that the current windows identity is authenticated.
Asserts that the current windows identity is not authenticated.
Asserts that the current windows identity is in role.
Asserts that the current windows identity is in role.
Asserts that the current windows identity is in role.
Asserts that the current windows identity is in .
Asserts that the current windows identity is in role.
The setup attribute is applied to a method that is to be invoked before each test in a fixture executes. The method will run once for each test. This class cannot be inherited.
String Assertion class This is a and so cannot be inherited or instantiated.
Asserts that two strings are equal, ignoring the case
Expected string
Actual string
Asserts the string does not contain c
String to test.
Variable list of characeters.
Asserts the regular expression reg makes a full match on s
String to test.
Regular expression
Asserts the regular expression regex makes a full match on .
String to test.
Regular expression
Asserts that the string is non null and empty
String to test.
Asserts that the string is non null and non empty
String to test.
Asserts the regular expression reg makes a match on s
String to test.
Regular expression
Asserts the regular expression regex makes a match on s
String to test.
A instance.
Asserts the regular expression reg makes a match on s
String to test.
Regular expression
Asserts the regular expression regex makes a match on s
String to test.
A instance.
The tear down attribute is applied to a method that is to be invoked after each test in a fixture executes. The method will run once for each test. This class cannot be inherited.
The test attribute is applied to a method that represents a single test case within a fixture. By default, if the method throws an unexpected exception, the test will be deemed to have failed. Otherwise, the test will pass.
The default behavior may be modified by test decorator attributes that may alter the execution environment of the test, catch and reinterpret any exceptions it throws, or impose additional constraints upon its execution.
Output from the test, such as text written to the console, is captured by the framework and will be included in the test report. Additional information can also be logged during test execution using the class.
Applies semantic actions to the member of a test to set the test's runtime behavior.
This method is called after .
The test
The test method
A test decorator applies actions to be performed around the initialization, setup, execution, teardown and disposal lifecycle of a test.
This abstract class provides a convenient way to implement new test decorators of your own. If you need more control over how the test is decorated, you may prefer subclassing directly instead.
When multiple test decorators are applied to a test, they are installed in order according to the property. This class is and so cannot be instantiated.
Applies decorations to a method or type-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The code element
Disposes the test.
The test instance state, not null
Executes the test.
The test instance state, not null
Initializes the test.
The test instance state, not null
Sets up the test.
The test instance state, not null
Tears down the test.
The test instance state, not null
The test fixture attribute is applied to a class that contains a suite of related test cases. If an error occurs while initializing the fixture or if at least one of the test cases within the fixture fails, then the fixture itself will be deemed to have failed. Otherwise the fixture will pass. Output from the fixture, such as text written to the console, is captured by the framework and will be included in the test report.
Associates the name of the type under test with a test fixture, test method, test parameter or other test component. The type under test helps to describe which type is primarily being exercised by the test so that we can quickly identify which tests to run after making changes to a given type.
Gets the full name or assembly qualified name of the type under test.
The name of the type under test as obtained by or .
Applies metadata contributions the metadata map of a test component.
The metadata map
Sets the maximum amount of time that a test or fixture is permitted to run.
Gets the timeout in seconds.
Applies decorations to a method or type-level .
A typical use of this method is to augment the test with additional metadata or to add additional behaviors to the test.
The test builder
The code element
Specifies the test's relative importance which can be used for classifying tests to be executed.
Critical importance.
Severe importance. Less important than .
Serious importance. Less important than .
Default importance.
Not important.
Helps to test non-public classes and class members.
Create Instance
Full assembly path.
Type Name such as (System.String)
Newly created object.
Create Instance
Full assembly path.
Type Name such as (System.String)
Constructor parameters.
Newly created object.
Get public, non-public, or static field value.
Object where field is defined.
Field name.
Field value
Get field value.
Specify field access modifier.
Object where field is defined.
Field name.
Field value
Get field value.
Specify field access modifier.
Object where field is defined.
Field name.
Specify if need to look in Base classes.
Field value
Get public, non-public, or static field value.
Field name.
Field value
Get field value.
Field name.
Specify field access modifier.
Field value
Get field value.
Field name.
Specify field access modifier.
Specify if need to look in Base classes.
Field value
Get Property Value
Object where property is defined.
Property Name.
Property Value.
Get Property Value
Specify property access modifier.
Object that has the property.
Property Name.
Property Value.
Get Property Value
Specify property access modifier.
Object that has the property.
Property Name.
Set to true if need look for the property in base classes.
Property Value.
Get Property Value
Property Name.
Property Value.
Get Property Value
Specify property access modifier.
Property Name.
Property Value.
Get Property Value
Specify property access modifier.
Property Name.
Specify if need to look in Base classes.
Property Value.
Execute a NonPublic method with arguments on a object
Object where method is defined.
Method to call
The object the method should return.
Execute a NonPublic method with arguments on a object
Object where method is defined.
Method to call
Method's parameters.
The object the method should return.
Execute a NonPublic method with arguments on a object
Specify method access modifier.
Object where method is defined.
Method to call
Method's parameters.
The object the method should return.
Execute a NonPublic method with arguments on a object
Specify method access modifier.
Object where method is defined.
Method to call
Speicifies if to search for the method in the base classes or not.
Method's parameters.
The object the method should return.
Execute a NonPublic method with arguments on a object
Method to call
The object the method should return.
Execute a NonPublic method with arguments on a object
Method to call
Method's parameters.
The object the method should return.
Execute a NonPublic method with arguments on a object
Method to call
Specify method access modifier.
Method's parameters.
The object the method should return.
Set field value.
Object where field is defined.
Field Name.
Field Value.
Set field value.
Specify field access modifier.
Object where field is defined.
Field Name.
Field Value.
Set field value.
Specify field access modifier.
Object where field is defined.
Field Name.
Field Value.
Specify if need to look in Base classes.
Set field value.
Field Name.
Field Value.
Set field value.
Field Name.
Field Value.
Specify field access modifier.
Set Property value.
Object where property is defined.
Property Name.
Property Value.
Set Property value.
Specify property access modifier.
Object where property is defined.
Property Name.
Property Value.
Set Property value.
Specify property access modifier.
Object where property is defined.
Property Name.
Property Value.
Set to true if need look for the property in base classes.
Set Property value.
Property Name.
Property Value.
Set Property value.
Specify property access modifier.
Property Name.
Property Value.
Access modifier of a class or class member.
public
protected, internal, private
static
default that includes public, protected, internal, private, and static
Member types of a class.
Method
Field or variable
Property
Assertions based on Xml serialization. This is a and so cannot be inherited or instantiated.
Performs XML serialization then deserialization of the specified object then compares the object to ensure that it equals the original.
The type of object to serialize
The object
The deserialized object after serialization
Thrown if is null
Asserts that an can be produced for a .
The type to check
Performs XML serialization then deserialization of the specified object.
The type of object to serialize
The object
The deserialized object after serialization
Thrown if is null