MbUnit.Framework Array Assertion class A private constructor disallows any instances of this object. Verifies that both array have the same dimension and elements. Class containing generic assert methods for the comparison of values and object references, the existence of objects within a collection type and basic object properties - for example, whether or not it is assignable to. Also contains a set of Fail asserts which will automatically fail a test straight away. The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function. Use AreEqual instead or one of its overloads. The first to compare The second to compare Overrides the default ReferenceEquals method inherited from to throw an AssertionException instead. This is to ensure that there is no mistake in calling this function as part of an Assert in your tests. Use AreSame() instead or one of its overloads. The first to compare The second to compare Checks the type of the object, returning true if the object is a numeric type. The object to check true if the object is a numeric type Used to compare numeric types. Comparisons between same types are fine (Int32 to Int32, or Int64 to Int64), but the Equals method fails across different types. This method was added to allow any numeric type to be handled correctly, by using ToString and comparing the result The first to compare The first to compare True or False A private constructor disallows any instances of this object. Asserts that a is true. If false, the method throws an with a message defined via and through String.Format(). The evaluated condition A composite format String An array containing zero or more objects to format. is not true. Exception message is generated through and . The following code example demonstrates a success (IsTrue_True) and a failed test (IsTrue_False) together with the exception's formatted message using MbUnit.Framework; using System; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsTrue_True() { Assert.IsTrue(true, "This test failed at {0}", DateTime.Now.ToShortDateString()); } //This test fails [Test] public void IsTrue_False() { Assert.IsTrue(false, "This test failed at {0}", DateTime.Now.ToShortDateString()); } } } Asserts that a is true. If false, the method throws an with the given . The evaluated condition The message printed out upon failure is not true. The following code example demonstrates a success (IsTrue_True) and a failed test (IsTrue_False) together with the exception's message using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsTrue_True() { Assert.IsTrue(true, "This test failed. Please get it working"); } //This test fails [Test] public void IsTrue_False() { Assert.IsTrue(false, "This test failed. Please get it working"); } } } Asserts that a is true. If false, the method throws an with no explanatory message. Use or instead to specify a message for the exception The evaluated condition is not true. The following code example demonstrates a success (IsTrue_True) and a failed test (IsTrue_False) together with the exception's message using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsTrue_True() { Assert.IsTrue(true); } //This test fails [Test] public void IsTrue_False() { Assert.IsTrue(false); } } } Asserts that a is false. If true, the method throws an with a message defined via and through String.Format(). The evaluated condition A composite format String An array containing zero or more objects to format. is not false. Exception message is generated through and . The following code example demonstrates a success (IsFalse_False) and a failed test (IsFalse_True) together with the exception's formatted message using System; using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsFalse_False() { Assert.IsFalse(false, "This test failed at {0}", DateTime.Now.ToShortDateString()); } //This test fails [Test] public void IsFalse_True() { Assert.IsFalse(true, "This test failed at {0}", DateTime.Now.ToShortDateString()); } } } Asserts that a is false. If true, the method throws an with the given . The evaluated condition The message printed out upon failure is not false. The following code example demonstrates a success (IsFalse_False) and a failed test (IsFalse_True) together with the exception's message using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsFalse_False() { Assert.IsFalse(false, "This test failed. Please get it working"); } //This test fails [Test] public void IsFalse_True() { Assert.IsFalse(true, "This test failed. Please get it working"); } } } Asserts that a is false. If true, the method throws an with no explanatory message. Use or instead to specify a message for the exception The evaluated condition is not false. The following code example demonstrates a success (IsFalse_False) and a failed test (IsFalse_True) together with the exception's message using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class Asserts { // This test succeeds [Test] public void IsFalse_False() { Assert.IsFalse(true); } //This test fails [Test] public void IsFalse_True() { Assert.IsFalse(false); } } } Verifies that two doubles, and , are equal considering a . If the expected value is infinity then the delta value is ignored. If they are not equals then an is thrown with the given . The expected value The actual value The maximum acceptable difference between and The message printed out upon failure has been given a negative value. and are not values within the given . The following example demonstrates Assert.AreEquals using a different variety of finite and infinite values using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class AreEqualTests { // This test passes [Test] public void AreEqual_SameValues() { Assert.AreEqual(1.0d, 1.0d, 0.0d, "These values are not equal"); } //This test passes [Test] public void AreEqual_ValuesWithinDelta() { Assert.AreEqual(1.0d, 1.1d, 0.2d, "These values are not equal"); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_ValuesNotWithinDelta() { Assert.AreEqual(1.0d, 2.0d, 0.2d, "These values are not equal"); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_OneValueIsInfinity() { Assert.AreEqual(double.PositiveInfinity, double.MaxValue, 1.0d, "These values are not equal"); } //This test passes [Test] public void AreEqual_BothValuesSameInfinity() { Assert.AreEqual(double.PositiveInfinity, double.PositiveInfinity, 1.0d, "These values are not equal"); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_DifferentValuesOfInfinity() { Assert.AreEqual(double.PositiveInfinity, double.NegativeInfinity, 0.0d, "These values are not equal"); } //This test fails with a ArgumentException [Test] public void AreEqual_NegativeDelta() { Assert.AreEqual(1.0d, 1.0d, -0.1d, "These values are not equal"); } } } Verifies that two doubles, and , are equal considering a . If the expected value is infinity then the delta value is ignored. If they are not equals then an is thrown with no explanation for the failure. Use if you want to provide an explanation. The expected value The actual value The maximum acceptable difference between and has been given a negative value. and are not values within the given . The following example demonstrates Assert.AreEquals using a different variety of finite and infinite values using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class AreEqualTests { // This test passes [Test] public void AreEqual_SameValues() { Assert.AreEqual(1.0d, 1.0d, 0.0d); } //This test passes [Test] public void AreEqual_ValuesWithinDelta() { Assert.AreEqual(1.0d, 1.1d, 0.2d); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_ValuesNotWithinDelta() { Assert.AreEqual(1.0d, 2.0d, 0.2d); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_OneValueIsInfinity() { Assert.AreEqual(double.PositiveInfinity, double.MaxValue, 1.0d); } //This test passes [Test] public void AreEqual_BothValuesSameInfinity() { Assert.AreEqual(double.PositiveInfinity, double.PositiveInfinity, 1.0d); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_DifferentValuesOfInfinity() { Assert.AreEqual(double.PositiveInfinity, double.NegativeInfinity, 0.0d); } //This test fails with an ArgumentException [Test] public void AreEqual_NegativeDelta() { Assert.AreEqual(1.0d, 1.0d, -0.1d); } } } Verifies that two doubles, and , are equal considering a . If the expected value is infinity then the delta value is ignored. If they are not equals then an is thrown with a message defined via and through String.Format(). The expected value The actual value The maximum acceptable difference between and A composite format String An array containing zero or more objects to format. has been given a negative value. and are not values within the given .Exception message is generated through and . The following example demonstrates Assert.AreEquals using a different variety of finite and infinite values using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class AreEqualTests { // This test passes [Test] public void AreEqual_SameValues() { Assert.AreEqual(1.0d, 1.0d, 0.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test passes [Test] public void AreEqual_ValuesWithinDelta() { Assert.AreEqual(1.0d, 1.1d, 0.2d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_ValuesNotWithinDelta() { Assert.AreEqual(1.0d, 2.0d, 0.2d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_OneValueIsInfinity() { Assert.AreEqual(double.PositiveInfinity, double.MaxValue, 1.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test passes [Test] public void AreEqual_BothValuesSameInfinity() { Assert.AreEqual(double.PositiveInfinity, double.PositiveInfinity, 1.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_DifferentValuesOfInfinity() { Assert.AreEqual(double.PositiveInfinity, double.NegativeInfinity, 0.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with an ArgumentException [Test] public void AreEqual_NegativeDelta() { Assert.AreEqual(1.0d, 1.0d, -0.1d, "Test failed at {0}", DateTime.Now.ToString()); } } } Verifies that two floats, and , are equal considering a . If the value is infinity then the value is ignored. If they are not equals then an is thrown with a message defined via and through String.Format(). The expected value The actual value The maximum acceptable difference between and A composite format String An array containing zero or more objects to format. has been given a negative value. and are not values within the given . Exception message is generated through and . The following example demonstrates Assert.AreEquals using a different variety of finite and infinite values using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class AreEqualTests { // This test passes [Test] public void AreEqual_SameValues() { Assert.AreEqual(1.0f, 1.0f, 0.0f, "Test failed at {0}", DateTime.Now.ToString()); } //This test passes [Test] public void AreEqual_ValuesWithinDelta() { Assert.AreEqual(1.0f, 1.1f, 0.2f, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_ValuesNotWithinDelta() { Assert.AreEqual(1.0f, 2.0f, 0.2f, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_OneValueIsInfinity() { Assert.AreEqual(float.PositiveInfinity, float.MaxValue, 1.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test passes [Test] public void AreEqual_BothValuesSameInfinity() { Assert.AreEqual(float.PositiveInfinity, float.PositiveInfinity, 1.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_DifferentValuesOfInfinity() { Assert.AreEqual(float.PositiveInfinity, float.NegativeInfinity, 0.0d, "Test failed at {0}", DateTime.Now.ToString()); } //This test fails with a ArgumentException [Test] public void AreEqual_NegativeDelta() { Assert.AreEqual(1.0f, 1.0f, -0.1f, "Test failed at {0}", DateTime.Now.ToString()); } } } Verifies that two floats, and , are equal considering a . If the value is infinity then the value is ignored. If they are not equals then an is thrown. The expected value The actual value The maximum acceptable difference between and has been given a negative value. and are not values within the given . The following example demonstrates Assert.AreEquals using a different variety of finite and infinite values using MbUnit.Framework; namespace AssertDocTests { [TestFixture] public class AreEqualTests { // This test passes [Test] public void AreEqual_SameValues() { Assert.AreEqual(1.0f, 1.0f, 0.0f); } //This test passes [Test] public void AreEqual_ValuesWithinDelta() { Assert.AreEqual(1.0f, 1.1f, 0.2f); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_ValuesNotWithinDelta() { Assert.AreEqual(1.0f, 2.0f, 0.2f); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_OneValueIsInfinity() { Assert.AreEqual(float.PositiveInfinity, float.MaxValue, 1.0d); } //This test passes [Test] public void AreEqual_BothValuesSameInfinity() { Assert.AreEqual(float.PositiveInfinity, float.PositiveInfinity, 1.0d); } //This test fails with a NotEqualAssertionException [Test] public void AreEqual_DifferentValuesOfInfinity() { Assert.AreEqual(float.PositiveInfinity, float.NegativeInfinity, 0.0d); } //This test fails with a ArgumentException [Test] public void AreEqual_NegativeDelta() { Assert.AreEqual(1.0f, 1.0f, -0.1f); } } } 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 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 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. The error message is formatted using . 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. The error message is formatted using . 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 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. The error message is formatted using . Asserts that two objects refer to the same object. If they are not the same an is thrown. The expected object The actual object 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. The error message is formatted using . 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. Makes the current test ignored using like formatting Makes the current test ignored using like formatting 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 . 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 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 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 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 . 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 . 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 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 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 . 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 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 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 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 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 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 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 This method is called when two objects have been compared and found to be different. This prints a nice message to the screen. 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. The error message is formatted using . This method is called when the two objects are not the same. 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. The error message is formatted using . This attribute identifies the author of a test fixture. Assertion helper for the class. This class contains static helper methods to verify assertions on the class. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 the property is synchronized with the number of iterated elements. Collection to test is a null reference (Nothing in Visual Basic) 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. Verifies that and are equal collections. Element count and element wize equality is verified. Expected value. Instance containing the tested value. Reason for unequality. 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 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 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 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 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 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 Checks an item if included in a given collection. The collection to check from The item to be checked True if item is included, False otherwise Collection indexing pattern. The implements the Collection Indexing Pattern. The user provides filled collection, index type and index range through the attribute. This example checks the Collection Indexing Pattern for the and collections: Base class for attributes that define test fixtures. Base class for all attributes that are part of the MbUnit framework. Base class for all attributes of MbUnit. Gets or sets the fixture timeout in minutes. Default value is 5 minutes. Time out minutes. Default constructor Constructor with fixture description Creates the execution logic See summary. A instance that represent the type test logic. This example checks the Collection Indexing Pattern for the and collections: Different collection order Tests ascending order collection Tests ascending order collection Collection Order Pattern implementations. Implements: Collection Order Pattern Logic: {Provider} [SetUp] {Fill} (Order) // internal [TearDown] This fixture tests sorted collections. The user must provider a comparer and the type of desired test based on the enumeration: ascending, descending. Tested collections are provided by methods tagged with the attribute. The collection are then filled using methods tagged by the attribute. The rest of the tests is handled by the framework. SetUp and TearDown methods can be added to set up the fixtue object. Tag use to mark a mark a unit test method. Base class for attributes that define unit test. Assertion helper for compilation. This class contains static helper methods to verify that snippets are compilable. Verifies that compiles using the provided compiler. Compiler instance Source code to compile Verifies that compiles using the provided compiler. Compiler instance Source code to compile Verifies that compiles using the provided compiler. Compiler instance Referenced assemblies Source code to compile Verifies that compiles using the provided compiler. instance. Compilation options source to compile Verifies that compiles using the provided compiler. instance. Compilation options Source to compile true if assertion should throw if any warning. Verifies that compiles using the provided compiler. instance. Compilation options Stream containing the source to compile Verifies that compiles using the provided compiler. instance. Compilation options Stream containing the source to compile true if assertion should throw if any warning. Verifies that does not compile using the provided compiler. instance. Source to compile Verifies that does not compile using the provided compiler. instance. Source to compile Verifies that does not compile using the provided compiler. instance. Collection of referenced assemblies Source to compile Verifies that does not compile using the provided compiler. instance. Compilation options Source to compile Verifies that does not compile using the provided compiler. instance. Compilation options Source to compile Gets the C# compiler from . C# compiler. Gets the VB.NET compiler from . VB.NET compiler. This interface defines a type of test/non test run that is used to define the logic. Populates the invoker graph with generated by the run. Invoker tree parent vertex class type that is marked by the run Gets a descriptive name of the A descriptive name of the Gets a value indicating the run is considered as a test or not. true if the instance is a test Populates the invoker graph with generated by the run. Invoker tree parent vertex class type that is marked by the run TODO Gets a descriptive name of the A descriptive name of the Gets a value indicating the run is considered as a test or not. true if the instance is a test Composite fixture pattern implementation. Creates a fixture for the type. Initializes the attribute with . type to apply the fixture to is a null reference Creates a fixture for the type and a description Initializes the attribute with . type to apply the fixture to description of the fixture fixtureType is a null reference Creates the execution logic See summary. A instance that represent the type test logic. Gets or sets the fixture type. Fixture instance type. This interface defines a method invoker object. When processing the test fixture, the tests are splitted down to a tree instance where each denotes the invokation of a fixture method, or a special processing of the fixture methods. The derived fixture define their logic by returning an instance. This instance is the generator for instances. Executes the wrapped method Test fixture instance Method arguments Return value of the invoked method. If the method returns void, null is returned. Gets a value indicating if the instance is related to A instance true if the instance is related to the member info; otherwize false Gets a descriptive name of the A descriptive name of the . Gets a reference to the instance that generated the invoker. Reference to the instance that generated the invoker. Tag used to mark a method that needs to be run before TestSuite generation. An invoker that wraps up the call to a fixture method. Default constructor - initializes all fields to default values This tag defines test method that will be repeated the specified number of times. Base class for MbUnit exceptions Initializes an empty instance. Invoker for tests decorated with the ExplicitAttribute. Decorator invorkers are used to modify the way a fixute method is executed. Popular examples of such is the or the . Constructor. Execute method for the invoker. Tags method that should throw an exception if a predicate is true. Tags method that should throw an exception. This is the base class for attributes that can decorate tests. The expected exception. The expected message text. The expected inner exception. Assertion helper for the class. This class contains static helper methods to verify assertions on the class. This class was automatically generated. Do not edit (or edit the template). 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 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 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 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 the property value of and are equal. Instance containing the expected value. Instance containing the tested value. 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 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 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 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 the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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 the property value of and are equal. Instance containing the expected value. Instance containing the tested value. Verifies that the property value is true. Instance containing the expected value. Verifies that the property value is false. Instance containing the expected value. 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 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 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 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. Tags method that provider a new object and copy the content of the arguments into the object Tags method that provide new object to be used in the following tests. Constructs a provider attribute for the type. provider type Constructs a provider attribute for the type. provider type description of the provider Gets or sets the provided type Provided type. Event argument that contains an assembly. Creates a new event argument. Assembly event delegate A collection of elements of type Assembly Initializes a new empty instance of the AssemblyCollection class. Adds an instance of type Assembly to the end of this AssemblyCollection. The Assembly to be added to the end of this AssemblyCollection. Determines whether a specfic Assembly value is in this AssemblyCollection. The Assembly value to locate in this AssemblyCollection. true if value is found in this AssemblyCollection; false otherwise. Removes the first occurrence of a specific Assembly from this AssemblyCollection. The Assembly value to remove from this AssemblyCollection. Returns an enumerator that can iterate through the elements of this AssemblyCollection. An object that implements System.Collections.IEnumerator. Gets or sets the Assembly at the given index in this AssemblyCollection. Type-specific enumeration class, used by AssemblyCollection.GetEnumerator. A dictionary with keys of type Assembly and values of type TypeCollection Initializes a new empty instance of the AssemblyTypeCollectionDictionary class Adds an element with the specified key and value to this AssemblyTypeCollectionDictionary. The Assembly key of the element to add. Determines whether this AssemblyTypeCollectionDictionary contains a specific key. The Assembly key to locate in this AssemblyTypeCollectionDictionary. true if this AssemblyTypeCollectionDictionary contains an element with the specified key; otherwise, false. Removes the element with the specified key from this AssemblyTypeCollectionDictionary. The Assembly key of the element to remove. Gets or sets the TypeCollection associated with the given Assembly The Assembly whose value to get or set. Gets a collection containing the keys in this AssemblyTypeCollectionDictionary. Gets a collection containing the values in this AssemblyTypeCollectionDictionary. Summary description for AttributedMethodCollection. Summary description for AttributedMethodEnumerator. Summary description for AttributedMethodCollection. Summary description for AttributedPropertyEnumerator. Initializes a new empty instance of the FixtureCollection class. Adds an instance of type Fixture to the end of this FixtureCollection. The Fixture to be added to the end of this FixtureCollection. Determines whether a specfic Fixture value is in this FixtureCollection. The Fixture value to locate in this FixtureCollection. true if value is found in this FixtureCollection; false otherwise. Removes the first occurrence of a specific Fixture from this FixtureCollection. The Fixture value to remove from this FixtureCollection. Returns an enumerator that can iterate through the elements of this FixtureCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by FixtureCollection.GetEnumerator. A collection of elements of type IFixtureFactory Initializes a new empty instance of the FixtureFactoryCollection class. Adds an instance of type IFixtureFactory to the end of this FixtureFactoryCollection. The IFixtureFactory to be added to the end of this FixtureFactoryCollection. Determines whether a specfic IFixtureFactory value is in this FixtureFactoryCollection. The IFixtureFactory value to locate in this FixtureFactoryCollection. true if value is found in this FixtureFactoryCollection; false otherwise. Removes the first occurrence of a specific IFixtureFactory from this FixtureFactoryCollection. The IFixtureFactory value to remove from this FixtureFactoryCollection. Returns an enumerator that can iterate through the elements of this FixtureFactoryCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by FixtureFactoryCollection.GetEnumerator. A collection of elements of type IRun Initializes a new empty instance of the RunCollection class. Adds an instance of type IRun to the end of this RunCollection. The IRun to be added to the end of this RunCollection. Determines whether a specfic IRun value is in this RunCollection. The IRun value to locate in this RunCollection. true if value is found in this RunCollection; false otherwise. Removes the first occurrence of a specific IRun from this RunCollection. The IRun value to remove from this RunCollection. Returns an enumerator that can iterate through the elements of this RunCollection. An object that implements System.Collections.IEnumerator. Gets or sets the IRun at the given index in this RunCollection. Type-specific enumeration class, used by RunCollection.GetEnumerator. A collection of elements of type IRunInvoker Initializes a new empty instance of the IRunInvokerCollection class. Adds an instance of type IRunInvoker to the end of this IRunInvokerCollection. The IRunInvoker to be added to the end of this IRunInvokerCollection. Determines whether a specfic IRunInvoker value is in this IRunInvokerCollection. The IRunInvoker value to locate in this IRunInvokerCollection. true if value is found in this IRunInvokerCollection; false otherwise. Removes the first occurrence of a specific IRunInvoker from this IRunInvokerCollection. The IRunInvoker value to remove from this IRunInvokerCollection. Returns an enumerator that can iterate through the elements of this IRunInvokerCollection. An object that implements System.Collections.IEnumerator. Gets or sets the IRunInvoker at the given index in this IRunInvokerCollection. Type-specific enumeration class, used by IRunInvokerCollection.GetEnumerator. A collection of elements of type RunInvokerVertex Initializes a new empty instance of the RunInvokerVertexCollection class. Adds an instance of type RunInvokerVertex to the end of this RunInvokerVertexCollection. The RunInvokerVertex to be added to the end of this RunInvokerVertexCollection. Determines whether a specfic RunInvokerVertex value is in this RunInvokerVertexCollection. The RunInvokerVertex value to locate in this RunInvokerVertexCollection. true if value is found in this RunInvokerVertexCollection; false otherwise. Removes the first occurrence of a specific RunInvokerVertex from this RunInvokerVertexCollection. The RunInvokerVertex value to remove from this RunInvokerVertexCollection. Returns an enumerator that can iterate through the elements of this RunInvokerVertexCollection. An object that implements System.Collections.IEnumerator. Gets or sets the RunInvokerVertex at the given index in this RunInvokerVertexCollection. Type-specific enumeration class, used by RunInvokerVertexCollection.GetEnumerator. A collection of elements of type RunInvokerVertexCollection Initializes a new empty instance of the RunInvokerVertexCollectionCollection class. Adds an instance of type RunInvokerVertexCollection to the end of this RunInvokerVertexCollectionCollection. The RunInvokerVertexCollection to be added to the end of this RunInvokerVertexCollectionCollection. Determines whether a specfic RunInvokerVertexCollection value is in this RunInvokerVertexCollectionCollection. The RunInvokerVertexCollection value to locate in this RunInvokerVertexCollectionCollection. true if value is found in this RunInvokerVertexCollectionCollection; false otherwise. Removes the first occurrence of a specific RunInvokerVertexCollection from this RunInvokerVertexCollectionCollection. The RunInvokerVertexCollection value to remove from this RunInvokerVertexCollectionCollection. Returns an enumerator that can iterate through the elements of this RunInvokerVertexCollectionCollection. An object that implements System.Collections.IEnumerator. Gets or sets the RunInvokerVertexCollection at the given index in this RunInvokerVertexCollectionCollection. Type-specific enumeration class, used by RunInvokerVertexCollectionCollection.GetEnumerator. A collection of elements of type RunPipe Initializes a new empty instance of the RunPipeCollection class. Adds an instance of type RunPipe to the end of this RunPipeCollection. The RunPipe to be added to the end of this RunPipeCollection. Determines whether a specfic RunPipe value is in this RunPipeCollection. The RunPipe value to locate in this RunPipeCollection. true if value is found in this RunPipeCollection; false otherwise. Removes the first occurrence of a specific RunPipe from this RunPipeCollection. The RunPipe value to remove from this RunPipeCollection. Returns an enumerator that can iterate through the elements of this RunPipeCollection. An object that implements System.Collections.IEnumerator. Gets or sets the RunPipe at the given index in this RunPipeCollection. Type-specific enumeration class, used by RunPipeCollection.GetEnumerator. A collection of elements of type IRunPipeListener Initializes a new empty instance of the RunPipeListenerCollection class. Adds an instance of type IRunPipeListener to the end of this RunPipeListenerCollection. The IRunPipeListener to be added to the end of this RunPipeListenerCollection. Determines whether a specfic IRunPipeListener value is in this RunPipeListenerCollection. The IRunPipeListener value to locate in this RunPipeListenerCollection. true if value is found in this RunPipeListenerCollection; false otherwise. Removes the first occurrence of a specific IRunPipeListener from this RunPipeListenerCollection. The IRunPipeListener value to remove from this RunPipeListenerCollection. Returns an enumerator that can iterate through the elements of this RunPipeListenerCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by RunPipeListenerCollection.GetEnumerator. A collection of elements of type RunPipeStarter Initializes a new empty instance of the RunPipeStarterCollection class. Adds an instance of type RunPipeStarter to the end of this RunPipeStarterCollection. The RunPipeStarter to be added to the end of this RunPipeStarterCollection. Determines whether a specfic RunPipeStarter value is in this RunPipeStarterCollection. The RunPipeStarter value to locate in this RunPipeStarterCollection. true if value is found in this RunPipeStarterCollection; false otherwise. Removes the first occurrence of a specific RunPipeStarter from this RunPipeStarterCollection. The RunPipeStarter value to remove from this RunPipeStarterCollection. Returns an enumerator that can iterate through the elements of this RunPipeStarterCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by RunPipeStarterCollection.GetEnumerator. A dictionary with keys of type IRun and values of type RunVertex Initializes a new empty instance of the RunVertexDictionary class Adds an element with the specified key and value to this RunVertexDictionary. The IRun key of the element to add. The RunVertex value of the element to add. Determines whether this RunVertexDictionary contains a specific key. The IRun key to locate in this RunVertexDictionary. true if this RunVertexDictionary contains an element with the specified key; otherwise, false. Determines whether this RunVertexDictionary contains a specific value. The RunVertex value to locate in this RunVertexDictionary. true if this RunVertexDictionary contains an element with the specified value; otherwise, false. Removes the element with the specified key from this RunVertexDictionary. The IRun key of the element to remove. Gets or sets the RunVertex associated with the given IRun The IRun whose value to get or set. Gets a collection containing the keys in this RunVertexDictionary. Gets a collection containing the values in this RunVertexDictionary. A collection of elements of type Thread Initializes a new empty instance of the ThreadCollection class. Adds an instance of type Thread to the end of this ThreadCollection. The Thread to be added to the end of this ThreadCollection. Determines whether a specfic Thread value is in this ThreadCollection. The Thread value to locate in this ThreadCollection. true if value is found in this ThreadCollection; false otherwise. Removes the first occurrence of a specific Thread from this ThreadCollection. The Thread value to remove from this ThreadCollection. Returns an enumerator that can iterate through the elements of this ThreadCollection. An object that implements System.Collections.IEnumerator. Gets or sets the Thread at the given index in this ThreadCollection. Type-specific enumeration class, used by ThreadCollection.GetEnumerator. Summary description for ThreadCollectionRunner. A collection of elements of type Type Initializes a new empty instance of the TypeCollection class. Adds an instance of type Type to the end of this TypeCollection. The Type to be added to the end of this TypeCollection. Determines whether a specfic Type value is in this TypeCollection. The Type value to locate in this TypeCollection. true if value is found in this TypeCollection; false otherwise. Removes the first occurrence of a specific Type from this TypeCollection. The Type value to remove from this TypeCollection. Returns an enumerator that can iterate through the elements of this TypeCollection. An object that implements System.Collections.IEnumerator. Gets or sets the Type at the given index in this TypeCollection. Type-specific enumeration class, used by TypeCollection.GetEnumerator. Allows control of command line parsing. Attach this attribute to instance fields of types used as the destination of command line argument parsing. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e Allows control of command line parsing. Specifies the error checking to be done on the argument. The error checking to be done on the argument. Returns true if the argument did not have an explicit short name specified. The short name of the argument. Returns true if the argument did not have an explicit long name specified. The long name of the argument. Parser for command line arguments. The parser specification is infered from the instance fields of the object specified as the destination of the parse. Valid argument types are: int, uint, string, bool, enums Also argument types of Array of the above types are also valid. Error checking options can be controlled by adding a CommandLineArgumentAttribute to the instance fields of the destination object. At most one field may be marked with the DefaultCommandLineArgumentAttribute indicating that arguments without a '-' or '/' prefix will be parsed as that argument. If not specified then the parser will infer default options for parsing each instance field. The default long name of the argument is the field name. The default short name is the first character of the long name. Long names and explicitly specified short names must be unique. Default short names will be used provided that the default short name does not conflict with a long name or an explicitly specified short name. Arguments which are array types are collection arguments. Collection arguments can be specified multiple times. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e Creates a new command line argument parser. The type of object to parse. The destination for parse errors. Parses an argument list into an object true if an error occurred Parses an argument list. The arguments to parse. The destination of the parsed arguments. true if no parse errors were encountered. A user friendly usage string describing the command line argument syntax. Used to control parsing of command line arguments. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e Indicates that this field is required. An error will be displayed if it is not present when parsing arguments. Only valid in conjunction with Multiple. Duplicate values will result in an error. Inidicates that the argument may be specified more than once. Only valid if the argument is a collection The default type for non-collection arguments. The argument is not required, but an error will be reported if it is specified more than once. For non-collection arguments, when the argument is specified more than once no error is reported and the value of the argument is the last value which occurs in the argument list. The default type for collection arguments. The argument is permitted to occur multiple times, but duplicate values will cause an error to be reported. Useful Stuff. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e The System Defined new line string. Don't ever call this. Parses Command Line Arguments. Errors are output on Console.Error. Use CommandLineArgumentAttributes to control parsing behaviour. The actual arguments. The resulting parsed arguments. Parses Command Line Arguments. Use CommandLineArgumentAttributes to control parsing behaviour. The actual arguments. The resulting parsed arguments. The destination for parse errors. Returns a Usage string for command line argument parsing. Use CommandLineArgumentAttributes to control parsing behaviour. The type of the arguments to display usage for. Printable string containing a user friendly description of command line arguments. Indicates that this argument is the default argument. '/' or '-' prefix only the argument value is specified. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e Indicates that this argument is the default argument. Specifies the error checking to be done on the argument. A delegate used in error reporting. Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e This method is used to provide assembly location resolver. It is called on event as needed by the CLR. Refer to document related to AppDomain.CurrentDomain.AssemblyResolve Exception throwed when not finding a vertex. Exception throwed when not finding a vertex. Creates an exception with a message and an inner exception. The to use. Error message Inner exception Filter class for FixtureCategory attribute. Tests if a fixture has a category attribute matching a pattern. The fixture to test. true if the fixture has a matching category attribute, otherwise false. Returns true if the entire test fixture is ignored. This is the base class for attributes that can decorate fixtures. Base class for attributes that tag method that are usualy used to set up, provide data, tear down tests, etc... Default constructor - initializes all fields to default values TODO - Add class summary created by - dehalleux created on - 30/01/2004 13:38:05 Default constructor - initializes all fields to default values Summary description for PropertyGetRunInvoker. Summary description for RunInvokerTreeEventHandler. A implementation, containing a . Builds a new unitialized vertex. Internal use only. You should not call this method directly. Not implemented. always thrown Serializes informations to the instance. serialization device info is a null reference Converts the object to string This class outputs the vertex ID and Invoker.ToString(). String representation of the vertex Gets a value indicating if the vertex has a instance attached to it. true if the vertex has a instance attached. Gets the attached to the vertex. The instance attached to the vertex the is a null reference Internal use Functor class that lanches an invoker execution. You can use this method to launch execution in separate threads. Constructs a execute functor invoker to execute .Execute arguments .Execute arguments Launches the invoker execution TODO - Add class summary created by - dehalleux created on - 30/01/2004 11:35:56 Summary description for MemoryTracker. Describes the status of the memory. The code to retreive the total physical and available physical memory was takened from the AUT project (http://aut.tigris.org). A high performance timer High Precision Timer based on Win32 methods. This example times the execution of a method: TimeMonitor timer = new TimeMonitor(); timer.Start(); ... // execute code timer.Stop(); Console.WriteLine("Duration: {0}",timer.Duration); Default constructor Initializes the timer. Starts the timer Resets the duration and starts the timer Stops the timer Stops the timer Gets the current duration value without stopping the timer Current duration value Gets the timed duration value in seconds Timer duration The MbUnit.Core namespace and child namespaces contains the kernel of MbUnit. The MbUnit.Core.Collections namespace contains stronly typed collections. The Exceptions namespace contains custom exception classes relative to the MbUnit framework. The MbUnit.Framework namespace contains base class for custom attributes , for test fixtures. The custom attributes can be used to build new test fixture. The MbUnit.Core.Invokers namespace contains invokers classes that are functor-like wrapper for fixture methods. The MbUnit.Core.Monitoring namespace contains time and memory performance tracers. The MbUnit.Core.Runs namespace contains run object that are generators for invoker methods. Long living object. (Extracted from NUnit source) All objects which are marshalled by reference and whose lifetime is manually controlled by the app, should derive from this class rather than MarshalByRefObject. This includes the remote test domain objects which are accessed by the client and those client objects which are called back by the remote test domain. Objects in this category that already inherit from some other class (e.g. from TextWriter) which in turn inherits from MarshalByRef object should override InitializeLifetimeService to return null to obtain the same effect. Original code from NUnit. Portions Copyright © 2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole Raises the event. Raises the event. Raises the event. Loads domain and test assembly Unload domain Unload and reload test domain Gets a identifying the AssemblyWatcher keeps track of one or more assemblies to see if they have changed. It incorporates a delayed notification and uses a standard event to notify any interested parties about the change. The path to the assembly is provided as an argument to the event handler so that one routine can be used to handle events from multiple watchers. Code takened from NUnit. /************************************************************************************ ' ' Copyright 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole ' Copyright 2000-2002 Philip A. Craig ' ' This software is provided 'as-is', without any express or implied warranty. In no ' event will the authors be held liable for any damages arising from the use of this ' software. ' ' Permission is granted to anyone to use this software for any purpose, including ' commercial applications, and to alter it and redistribute it freely, subject to the ' following restrictions: ' ' 1. The origin of this software must not be misrepresented; you must not claim that ' you wrote the original software. If you use this software in a product, an ' acknowledgment (see the following) in the product documentation is required. ' ' Portions Copyright 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole ' or Copyright 2000-2002 Philip A. Craig ' ' 2. Altered source versions must be plainly marked as such, and must not be ' misrepresented as being the original software. ' ' 3. This notice may not be removed or altered from any source distribution. ' '***********************************************************************************/ Summary description for AuthorTestTreePopulator. Defines a class that can populate a tree of tests Defines a class that can populate a tree of tests Clears the internal representation of the tree Populates the node using the instance contained in . A node dictionary. The root node. A collection of pipes. or is a null reference (Nothing in Visual Basic) Clears the internal representation of the tree Populates the node using the instance contained in . Node dictionary. The root node. Collection of s or is a null reference (Nothing in Visual Basic) Helper method to delete the cache dir. This method deals with a bug that occurs when pdb files are marked read-only. Merge a 'dependentAssembly' directive into a given config document. If any entries exist for the same assembly they will be deleted before the new entry is merged. The config document to merge The Assembly that should be used The range of compatable versions (eg. "1.0.0.0-3.0.0.0") The codebase to use. specify a URL to define a codeBase otherwise null Summary description for FixtureCategoryTestTreePopulator. A dictionary with keys of type Guid and values of type TestTreeNode Initializes a new empty instance of the GuidTestTreeNodeDictionary class Adds an element with the specified key and value to this GuidTestTreeNodeDictionary. The TestTreeNode value of the element to add. Determines whether this GuidTestTreeNodeDictionary contains a specific key. The Guid key to locate in this GuidTestTreeNodeDictionary. true if this GuidTestTreeNodeDictionary contains an element with the specified key; otherwise, false. Determines whether this GuidTestTreeNodeDictionary contains a specific key. The Guid key to locate in this GuidTestTreeNodeDictionary. true if this GuidTestTreeNodeDictionary contains an element with the specified key; otherwise, false. Removes the element with the specified key from this GuidTestTreeNodeDictionary. The Guid key of the element to remove. Gets or sets the TestTreeNode associated with the given Guid The Guid whose value to get or set. Gets a collection containing the keys in this GuidTestTreeNodeDictionary. Gets a collection containing the values in this GuidTestTreeNodeDictionary. A dictionary with keys of type Guid and values of type TreeNode Initializes a new empty instance of the GuidTreeNodeDictionary class Adds an element with the specified key and value to this GuidTreeNodeDictionary. The TreeNode value of the element to add. Determines whether this GuidTreeNodeDictionary contains a specific key. The Guid key to locate in this GuidTreeNodeDictionary. true if this GuidTreeNodeDictionary contains an element with the specified key; otherwise, false. Determines whether this GuidTreeNodeDictionary contains a specific key. The Guid key to locate in this GuidTreeNodeDictionary. true if this GuidTreeNodeDictionary contains an element with the specified key; otherwise, false. Removes the element with the specified key from this GuidTreeNodeDictionary. The Guid key of the element to remove. Gets or sets the TreeNode associated with the given Guid The Guid whose value to get or set. Gets a collection containing the keys in this GuidTreeNodeDictionary. Gets a collection containing the values in this GuidTreeNodeDictionary. Summary description for ImportanceTestTreePopulator. Clears the internal representation of the tree Populates the node using the instance contained in . Summary description for ImageListBuilder. Supports verbose output option of console app. Added as part of fix to issue MBUNIT-28. Marc Stober December 21, 2005 Set the location for caching and delete any old cache info Our domain This method is used to provide assembly location resolver. It is called on event as needed by the CLR. Refer to document related to AppDomain.CurrentDomain.AssemblyResolve Creates an AppDomain for the Test Assembly Gets or sets a value indicating the assemblies have to be shadow copied A dictionary with keys of type String and values of type TestTreeNode Initializes a new empty instance of the StringTestTreeNodeDictionary class Adds an element with the specified key and value to this StringTestTreeNodeDictionary. The String key of the element to add. The TestTreeNode value of the element to add. Determines whether this StringTestTreeNodeDictionary contains a specific key. The String key to locate in this StringTestTreeNodeDictionary. true if this StringTestTreeNodeDictionary contains an element with the specified key; otherwise, false. Removes the element with the specified key from this StringTestTreeNodeDictionary. The String key of the element to remove. Gets or sets the TestTreeNode associated with the given String The String whose value to get or set. Gets a collection containing the keys in this StringTestTreeNodeDictionary. Gets a collection containing the values in this StringTestTreeNodeDictionary. Gets the testFilePath Summary description for TestsOnTestTreePopulator. A collection of elements of type TestTreeNode Initializes a new empty instance of the TestTreeNodeCollection class. Adds an instance of type TestTreeNode to the end of this TestTreeNodeCollection. The TestTreeNode to be added to the end of this TestTreeNodeCollection. Determines whether a specfic TestTreeNode value is in this TestTreeNodeCollection. The TestTreeNode value to locate in this TestTreeNodeCollection. true if value is found in this TestTreeNodeCollection; false otherwise. Removes the first occurrence of a specific TestTreeNode from this TestTreeNodeCollection. The TestTreeNode value to remove from this TestTreeNodeCollection. Returns an enumerator that can iterate through the elements of this TestTreeNodeCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by TestTreeNodeCollection.GetEnumerator. A collection of elements of type TestTreePopulator Initializes a new empty instance of the TestTreePopulatorCollection class. Initializes a new instance of the TestTreePopulatorCollection class, containing elements copied from an array. The array whose elements are to be added to the new TestTreePopulatorCollection. Initializes a new instance of the TestTreePopulatorCollection class, containing elements copied from another instance of TestTreePopulatorCollection The TestTreePopulatorCollection whose elements are to be added to the new TestTreePopulatorCollection. Adds the elements of an array to the end of this TestTreePopulatorCollection. The array whose elements are to be added to the end of this TestTreePopulatorCollection. Adds the elements of another TestTreePopulatorCollection to the end of this TestTreePopulatorCollection. The TestTreePopulatorCollection whose elements are to be added to the end of this TestTreePopulatorCollection. Adds an instance of type TestTreePopulator to the end of this TestTreePopulatorCollection. The TestTreePopulator to be added to the end of this TestTreePopulatorCollection. Determines whether a specfic TestTreePopulator value is in this TestTreePopulatorCollection. The TestTreePopulator value to locate in this TestTreePopulatorCollection. true if value is found in this TestTreePopulatorCollection; false otherwise. Removes the first occurrence of a specific TestTreePopulator from this TestTreePopulatorCollection. The TestTreePopulator value to remove from this TestTreePopulatorCollection. Returns an enumerator that can iterate through the elements of this TestTreePopulatorCollection. An object that implements System.Collections.IEnumerator. Type-specific enumeration class, used by TestTreePopulatorCollection.GetEnumerator. Gets the assembly watcher Render the report result to the specified writer Result from the test Writer to write result output to Render the report result to a file Result from the test Report output file name Render the report result to a file Result from the test Output directory Default format name Extension of the file File name of the report Render the report result to a file Result from the test Output directory Default format name. If null, the default name will be used File name of the report Reports MbUnit result in text format. XML Report. Static helper functions for retreiving resources Creates and saves the images in the directory with the specified path. The directory path in which to save the images This class represents the execution pipe of a test. It contains a sequence of . Default constructor - initializes all fields to default values TODO - Add class summary created by - dehalleux created on - 30/01/2004 14:09:36 Default constructor - initializes all fields to default values Default constructor - initializes all fields to default values Summary description for RunPipeStarterEventArgs. Summary description for ProviderFactoryRun. TODO - Add class summary created by - dehalleux created on - 30/01/2004 15:26:18 Summary description for FixtureDecoratorRun. Populates the invoker graph with generated by the run. Invoker tree parent vertex class type that is marked by the run Gets a descriptive name of the A descriptive name of the Gets a value indicating the run is considered as a test or not. true if the instance is a test TODO - Add class summary created by - dehalleux created on - 29/01/2004 14:44:27 Summary description for ProviderFactoryRun. A sequence of IRuns Populates the invoker graph with generated by the run. Inherited method from base class Run Invoker tree. Parent vertex. The to search for. Test fixture run with support for decoration by . Builds the test run invoker tree. Event argument that carries a instance. Type event delegate Helper static class for Type related tasks Output the methods and their custom attributes to the console. (Debugging method) type to visit You can use this method to display the methods of a class or struct type. Mainly for debugging purpose. is a null reference is anot a class type. Gets a value indicating the class type has a method that is tagged by a instance. type to test custom attribute type to search true if class type has a method tagged by a attribute, false otherwise. or is a null reference You can use this method to check that a type is tagged by an attribute. Gets a value indicating if the is tagged by a instance. method to test custom attribute type to search true if is tagged by a attribute, false otherwise. or is a null reference You can use this method to check that a method is tagged by a specified attribute. Gets a value indicating if the method info is tagged by a instance. method to test custom attribute type to search true if is tagged by a attribute, false otherwise. or is a null reference You can use this method to check that a method is tagged by a specified attribute. Gets the first instance of from the method custom attributes. Method to test custom attribute type to search First instance of from the method custom attributes. or is a null reference is not tagged by an attribute of type You can use this method to retreive a specified attribute instance of a method. Gets the first instance of from the method custom attributes. Method to test custom attribute type to search First instance of from the method custom attributes; otherwize a null reference or is a null reference You can use this method to retreive a specified attribute instance of a method. Gets the first method of the type that is tagged by a instance. type to test custom attribute type to search First method of that that is tagged by a instance, null if no method is tagged by the specified attribute type. or is a null reference You can use this method to retreive a tagged method Gets all methods of the type that are tagged by a instance. type to test custom attribute type to search collection of type that that are tagged by a instance. or is a null reference You can use this method to retreive all the methods of a type tagged by a . Gets a value indicating if the type contains a Method with the signature defined by . Checks if a type has a desired Method. type to test arguments of the Method true if contains a Method matching types t is a null reference Retreives the that matches the signature. type to test Method parameter types The instance of matching the signature. is a null reference No Method of type match the signature defined by . This method tries to retreive a Method matching the signature and throws if it failed. Retreives the that matches the signature, given the list of arguments. type to test Method arguments from which the signature is deduced The instance of matching the signature defined by the list of arguments. is a null reference One of the args item is a null reference No Method of type match the signature defined by . This methods retreives the types of and looks for a Method matching that signature. Creates an instance of the type using the default Method. type to instanciate type instance Creates an instance of the type using the Method that matches the signature defined by type to instanciate argument of the Method type instance initialized using Gets a value indicating if the type has an indexer that takes arguments. Checks that an indexer with a given signature exists in the class. type that holds the indexer indexer arguments true if an indexer that matched the signature was found, false otherwise Retreives the indexer that matches the signature Safe retreival of an indexer, given it's signature type that holds the indexer indexer arguments Gets the value of the property . property object instnace property arguments (in case of an indexer property value Gets a value indicating if the match the property or method paramter info tested signature Assertion class for Database related object. A private constructor disallows any instances of this object. Asserts that two are equal. Expected instance. Actual instance. Asserts that two are equal. Expected instance. Actual instance. Insipired from this blog entry.. Assert that schemas are equal. Assert that schemas and data are equal. Assert that data are equal. Data Test fixture. Default constructor Constructor with a fixture description fixture description Creates the execution logic See summary. A instance that represent the type test logic. This example shows a test fixture class implementing the Simple Test pattern. It tests image based method of the Graphics class in GDI+. A set up method (tagged by is used to create a new bitmap, while a tear down (tagged by ) is used to released the bitmap. [TestFixture("Bitmap")] public GraphicsAndBitmapTest { private Bitmap bmp; [SetUp] public void SetUp() { this.bmp = new Bitmap(300,300); } [Test] public void CreateGraphics() { Graphics g = Graphcis.FromImage(this.bmp); Assert.IsNotNull(g); Assert.AreEqual(g.Width,this.bmp.Width); ... } ... [TearDown] public void TearDownCanHaveOtherNames() { if(this.bmp!=null) this.bmp.Dispose(); } } Tags method that provide data for the tests. Tag method that should return in a given time interval. Tags test methods that are only to be run when explicitly selected.

Test methods annotated with this attribute will have the specified embedded resource extracted.

For example:

[Test] [ExtractResource("MyAssembly.Test.txt", "Test.txt")] public void SomeTest() { Assert.IsTrue(File.Exists("Test.txt")); }

It's possible to extract the resource into a stream as well by not specifying a destination file.

[Test] [ExtractResource("MyAssembly.Test.txt")] public void SomeOtherTest() { Assert.IsNotNull(ExtractResourceAttribute.Stream); }
Extracts the resource to a stream. Access the stream like so: . Extracts the resource to a stream. Any type in the assembly where the resource is embedded. Extracts the specified resource to the destination. The destination should be a file name. Will attempt to cleanup resource after the test is complete. The full name of the embedded resource. Use reflector or ILDasm if you're unsure. The filename or file path where the embedded resource should be extracted to. Extracts the specified resource to the destination. The destination should be a file name. The full name of the embedded resource. Use reflector or ILDasm if you're unsure. The filename or file path where the embedded resource should be extracted to. Whether or not to try and cleanup the resource at the end Extracts the specified resource to the destination. The destination should be a file name. The full name of the embedded resource. Use reflector or ILDasm if you're unsure. The filename or file path where the embedded resource should be extracted to. Whether or not to cleanup the extracted resource after the test. Any type in the assembly where the resource is embedded. The full name of the resource. Use Reflector to find this out if you don't know. The destination file to write the resource to. Should be a path. Whether or not to cleanup the resource. The current resource stream if using the attribute without specifying a destination. The type within the assembly that contains the embedded resource. Used to specify whether or not the test should delete the extracted resource when the test is complete. Do not delete the extracted resource Delete the extracted resource after the test. Tags method that fill collections with data. Tags test methods that are ignored. This attribute collects the test importance information. Fixture importance is labelled from 0, critical to higher values representing less critical tests. Tag method that provider a collection, an inde Default constructor - initializes all fields to default values Default constructor - initializes all fields to default values and int iterator Required designer variable. Clean up any resources being used. Required method for Designer support - do not modify the contents of this method with the code editor. Tag method that gives a list of culture that the test should run on. Summary description for ProviderFixtureDecoratorPatternAttribute. Performance Assertion class Creates a countdown timer that will assert if execution time exceeds maximum duration. Runtime statistics on CLR exception handling. This counter displays the total number of exceptions thrown since the start of the application. These include both .NET exceptions and unmanaged exceptions that get converted into .NET exceptions e.g. null pointer reference exception in unmanaged code would get re-thrown in managed code as a .NET System.NullReferenceException; this counter includes both handled and unhandled exceptions. Exceptions that are re-thrown would get counted again. Exceptions should only occur in rare situations and not in the normal control flow of the program. Gets the value of the . Value returned by for the current instance. This counter displays the number of exceptions thrown per second. These include both .NET exceptions and unmanaged exceptions that get converted into .NET exceptions e.g. null pointer reference exception in unmanaged code would get re-thrown in managed code as a .NET System.NullReferenceException; this counter includes both handled and unhandled exceptions. Exceptions should only occur in rare situations and not in the normal control flow of the program; this counter was designed as an indicator of potential performance problems due to large (>100s) rate of exceptions thrown. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the number of .NET exception filters executed per second. An exception filter evaluates whether an exception should be handled or not. This counter tracks the rate of exception filters evaluated; irrespective of whether the exception was handled or not. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the number of finally blocks executed per second. A finally block is guaranteed to be executed regardless of how the try block was exited. Only the finally blocks that are executed for an exception are counted; finally blocks on normal code paths are not counted by this counter. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the number of stack frames traversed from the frame that threw the .NET exception to the frame that handled the exception per second. This counter resets to 0 when an exception handler is entered; so nested exceptions would show the handler to handler stack depth. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. Stats for CLR Remoting. This counter displays the number of remote procedure calls invoked per second. A remote procedure call is a call on any object outside the caller;s AppDomain. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the total number of remote procedure calls invoked since the start of this application. A remote procedure call is a call on any object outside the caller;s AppDomain. Gets the value of the . Value returned by for the current instance. This counter displays the total number of remoting channels registered across all AppDomains since the start of the application. Channels are used to transport messages to and from remote objects. Gets the value of the . Value returned by for the current instance. This counter displays the total number of remoting proxy objects created in this process since the start of the process. Proxy object acts as a representative of the remote objects and ensures that all calls made on the proxy are forwarded to the correct remote object instance. Gets the value of the . Value returned by for the current instance. This counter displays the current number of context-bound classes loaded. Classes that can be bound to a context are called context-bound classes; context-bound classes are marked with Context Attributes which provide usage rules for synchronization; thread affinity; transactions etc. Gets the value of the . Value returned by for the current instance. This counter displays the number of context-bound objects allocated per second. Instances of classes that can be bound to a context are called context-bound objects; context-bound classes are marked with Context Attributes which provide usage rules for synchronization; thread affinity; transactions etc. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the current number of remoting contexts in the application. A context is a boundary containing a collection of objects with the same usage rules like synchronization; thread affinity; transactions etc. Gets the value of the . Value returned by for the current instance. Help not available. The cumulative total number of socket connections established for this process since the process was started. Gets the value of the . Value returned by for the current instance. The cumulative total number of bytes received over all open socket connections since the process was started. This number includes data and any protocol information that is not defined by the TCP/IP protocol. Gets the value of the . Value returned by for the current instance. The cumulative total number of bytes sent over all open socket connections since the process was started. This number includes data and any protocol information that is not defined by the TCP/IP protocol. Gets the value of the . Value returned by for the current instance. The cumulative total number of datagram packets received since the process was started. Gets the value of the . Value returned by for the current instance. The cumulative total number of datagram packets sent since the process was started. Gets the value of the . Value returned by for the current instance. Counters for CLR Garbage Collected heap. This counter displays the number of times the generation 0 objects (youngest; most recently allocated) are garbage collected (Gen 0 GC) since the start of the application. Gen 0 GC occurs when the available memory in generation 0 is not sufficient to satisfy an allocation request. This counter is incremented at the end of a Gen 0 GC. Higher generation GCs include all lower generation GCs. This counter is explicitly incremented when a higher generation (Gen 1 or Gen 2) GC occurs. _Global_ counter value is not accurate and should be ignored. This counter displays the last observed value. Gets the value of the . Value returned by for the current instance. This counter displays the number of times the generation 1 objects are garbage collected since the start of the application. The counter is incremented at the end of a Gen 1 GC. Higher generation GCs include all lower generation GCs. This counter is explicitly incremented when a higher generation (Gen 2) GC occurs. _Global_ counter value is not accurate and should be ignored. This counter displays the last observed value. Gets the value of the . Value returned by for the current instance. This counter displays the number of times the generation 2 objects (older) are garbage collected since the start of the application. The counter is incremented at the end of a Gen 2 GC (also called full GC). _Global_ counter value is not accurate and should be ignored. This counter displays the last observed value. Gets the value of the . Value returned by for the current instance. This counter displays the bytes of memory that survive garbage collection (GC) and are promoted from generation 0 to generation 1; objects that are promoted just because they are waiting to be finalized are not included in this counter. This counter displays the value observed at the end of the last GC; its not a cumulative counter. Gets the value of the . Value returned by for the current instance. This counter displays the bytes of memory that survive garbage collection (GC) and are promoted from generation 1 to generation 2; objects that are promoted just because they are waiting to be finalized are not included in this counter. This counter displays the value observed at the end of the last GC; its not a cumulative counter. This counter is reset to 0 if the last GC was a Gen 0 GC only. Gets the value of the . Value returned by for the current instance. This counter displays the bytes per second that are promoted from generation 0 (youngest) to generation 1; objects that are promoted just because they are waiting to be finalized are not included in this counter. Memory is promoted when it survives a garbage collection. This counter was designed as an indicator of relatively long-lived objects being created per sec. This counter displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the bytes per second that are promoted from generation 1 to generation 2 (oldest); objects that are promoted just because they are waiting to be finalized are not included in this counter. Memory is promoted when it survives a garbage collection. Nothing is promoted from generation 2 since it is the oldest. This counter was designed as an indicator of very long-lived objects being created per sec. This counter displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the bytes of memory that are promoted from generation 0 to generation 1 just because they are waiting to be finalized. This counter displays the value observed at the end of the last GC; its not a cumulative counter. Gets the value of the . Value returned by for the current instance. This counter displays the bytes of memory that are promoted from generation 1 to generation 2 just because they are waiting to be finalized. This counter displays the value observed at the end of the last GC; its not a cumulative counter. This counter is reset to 0 if the last GC was a Gen 0 GC only. Gets the value of the . Value returned by for the current instance. This counter displays the maximum bytes that can be allocated in generation 0 (Gen 0); its does not indicate the current number of bytes allocated in Gen 0. A Gen 0 GC is triggered when the allocations since the last GC exceed this size. The Gen 0 size is tuned by the Garbage Collector and can change during the execution of the application. At the end of a Gen 0 collection the size of the Gen 0 heap is infact 0 bytes; this counter displays the size (in bytes) of allocations that would trigger the next Gen 0 GC. This counter is updated at the end of a GC; its not updated on every allocation. Gets the value of the . Value returned by for the current instance. This counter displays the current number of bytes in generation 1 (Gen 1); this counter does not display the maximum size of Gen 1. Objects are not directly allocated in this generation; they are promoted from previous Gen 0 GCs. This counter is updated at the end of a GC; its not updated on every allocation. Gets the value of the . Value returned by for the current instance. This counter displays the current number of bytes in generation 2 (Gen 2). Objects are not directly allocated in this generation; they are promoted from Gen 1 during previous Gen 1 GCs. This counter is updated at the end of a GC; its not updated on every allocation. Gets the value of the . Value returned by for the current instance. This counter displays the current size of the Large Object Heap in bytes. Objects greater than 20 KBytes are treated as large objects by the Garbage Collector and are directly allocated in a special heap; they are not promoted through the generations. This counter is updated at the end of a GC; its not updated on every allocation. Gets the value of the . Value returned by for the current instance. This counter displays the number of garbage collected objects that survive a collection because they are waiting to be finalized. If these objects hold references to other objects then those objects also survive but are not counted by this counter; the "Promoted Finalization-Memory from Gen 0" and "Promoted Finalization-Memory from Gen 1" counters represent all the memory that survived due to finalization. This counter is not a cumulative counter; its updated at the end of every GC with count of the survivors during that particular GC only. This counter was designed to indicate the extra overhead that the application might incur because of finalization. Gets the value of the . Value returned by for the current instance. This counter displays the current number of GC Handles in use. GCHandles are handles to resources external to the CLR and the managed environment. Handles occupy small amounts of memory in the GCHeap but potentially expensive unmanaged resources. Gets the value of the . Value returned by for the current instance. This counter displays the rate of bytes per second allocated on the GC Heap. This counter is updated at the end of every GC; not at each allocation. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the peak number of times a garbage collection was performed because of an explicit call to GC.Collect. Its a good practice to let the GC tune the frequency of its collections. Gets the value of the . Value returned by for the current instance. % Time in GC is the percentage of elapsed time that was spent in performing a garbage collection (GC) since the last GC cycle. This counter is usually an indicator of the work done by the Garbage Collector on behalf of the application to collect and compact memory. This counter is updated only at the end of every GC and the counter value reflects the last observed value; its not an average. Gets the value of the . Value returned by for the current instance. Not Displayed. Gets the value of the . Value returned by for the current instance. This counter is the sum of four other counters; Gen 0 Heap Size; Gen 1 Heap Size; Gen 2 Heap Size and the Large Object Heap Size. This counter indicates the current memory allocated in bytes on the GC Heaps. Gets the value of the . Value returned by for the current instance. This counter displays the amount of virtual memory (in bytes) currently committed by the Garbage Collector. (Committed memory is the physical memory for which space has been reserved on the disk paging file). Gets the value of the . Value returned by for the current instance. This counter displays the amount of virtual memory (in bytes) currently reserved by the Garbage Collector. (Reserved memory is the virtual memory space reserved for the application but no disk or main memory pages have been used.) Gets the value of the . Value returned by for the current instance. This counter displays the number of pinned objects encountered in the last GC. This counter tracks the pinned objects only in the heaps that were garbage collected e.g. a Gen 0 GC would cause enumeration of pinned objects in the generation 0 heap only. A pinned object is one that the Garbage Collector cannot move in memory. Gets the value of the . Value returned by for the current instance. This counter displays the current number of sync blocks in use. Sync blocks are per-object data structures allocated for storing synchronization information. Sync blocks hold weak references to managed objects and need to be scanned by the Garbage Collector. Sync blocks are not limited to storing synchronization information and can also store COM interop metadata. This counter was designed to indicate performance problems with heavy use of synchronization primitives. Gets the value of the . Value returned by for the current instance. Stats for CLR interop. This counter displays the current number of Com-Callable-Wrappers (CCWs). A CCW is a proxy for the .NET managed object being referenced from unmanaged COM client(s). This counter was designed to indicate the number of managed objects being referenced by unmanaged COM code. Gets the value of the . Value returned by for the current instance. This counter displays the current number of stubs created by the CLR. Stubs are responsible for marshalling arguments and return values from managed to unmanaged code and vice versa; during a COM Interop call or PInvoke call. Gets the value of the . Value returned by for the current instance. This counter displays the total number of times arguments and return values have been marshaled from managed to unmanaged code and vice versa since the start of the application. This counter is not incremented if the stubs are inlined. (Stubs are responsible for marshalling arguments and return values). Stubs usually get inlined if the marshalling overhead is small. Gets the value of the . Value returned by for the current instance. Reserved for future use. Gets the value of the . Value returned by for the current instance. Reserved for future use. Gets the value of the . Value returned by for the current instance. Counters for System.Data.SqlClient The number of actual connections per second that are being made to servers Gets the value of the . Value returned by . The number of actual disconnects per second that are being made to servers Gets the value of the . Value returned by . The number of connections we get from the pool per second Gets the value of the . Value returned by . The number of connections we return to the pool per second Gets the value of the . Value returned by . The number of connections that are not using connection pooling Gets the value of the . Value returned by . The number of connections that are managed by the connection pooler Gets the value of the . Value returned by . The number of unique connection strings Gets the value of the . Value returned by . The number of unique connection strings waiting for pruning Gets the value of the . Value returned by . The number of connection pools Gets the value of the . Value returned by . The number of connection pools Gets the value of the . Value returned by . The number of connections currently in-use Gets the value of the . Value returned by . The number of connections currently available for use Gets the value of the . Value returned by . The number of connections currently waiting to be made ready for use Gets the value of the . Value returned by . The number of connections we reclaim from GCed from external connections Gets the value of the . Value returned by . .Net CLR Data Current number of connections, pooled or not. Gets the value of the . Value returned by . Current number of connections in all pools associated with the process. Gets the value of the . Value returned by . Current number of pools associated with the process. Gets the value of the . Value returned by . The highest number of connections in all pools since the process started. Gets the value of the . Value returned by . The total number of connection open attempts that have failed for any reason. Gets the value of the . Value returned by . The total number of command executes that have failed for any reason. Gets the value of the . Value returned by . Statistics for CLR Class Loader. This counter displays the current number of classes loaded in all Assemblies. Gets the value of the . Value returned by for the current instance. This counter displays the cumulative number of classes loaded in all Assemblies since the start of this application. Gets the value of the . Value returned by for the current instance. This counter displays the number of classes loaded per second in all Assemblies. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the current number of AppDomains loaded in this application. AppDomains (application domains) provide a secure and versatile unit of processing that the CLR can use to provide isolation between applications running in the same process. Gets the value of the . Value returned by for the current instance. This counter displays the peak number of AppDomains loaded since the start of this application. AppDomains (application domains) provide a secure and versatile unit of processing that the CLR can use to provide isolation between applications running in the same process. Gets the value of the . Value returned by for the current instance. This counter displays the number of AppDomains loaded per second. AppDomains (application domains) provide a secure and versatile unit of processing that the CLR can use to provide isolation between applications running in the same process. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the current number of Assemblies loaded across all AppDomains in this application. If the Assembly is loaded as domain-neutral from multiple AppDomains then this counter is incremented once only. Assemblies can be loaded as domain-neutral when their code can be shared by all AppDomains or they can be loaded as domain-specific when their code is private to the AppDomain. Gets the value of the . Value returned by for the current instance. This counter displays the total number of Assemblies loaded since the start of this application. If the Assembly is loaded as domain-neutral from multiple AppDomains then this counter is incremented once only. Assemblies can be loaded as domain-neutral when their code can be shared by all AppDomains or they can be loaded as domain-specific when their code is private to the AppDomain. Gets the value of the . Value returned by for the current instance. This counter displays the number of Assemblies loaded across all AppDomains per second. If the Assembly is loaded as domain-neutral from multiple AppDomains then this counter is incremented once only. Assemblies can be loaded as domain-neutral when their code can be shared by all AppDomains or they can be loaded as domain-specific when their code is private to the AppDomain. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. Reserved for future use. Gets the value of the . Value returned by for the current instance. Reserved for future use. Gets the value of the . Value returned by for the current instance. This counter displays the peak number of classes that have failed to load since the start of the application. These load failures could be due to many reasons like inadequate security or illegal format. Full details can be found in the profiling services help. Gets the value of the . Value returned by for the current instance. This counter displays the number of classes that failed to load per second. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. These load failures could be due to many reasons like inadequate security or illegal format. Full details can be found in the profiling services help. Gets the value of the . Value returned by for the current instance. This counter displays the current size (in bytes) of the memory committed by the class loader across all AppDomains. (Committed memory is the physical memory for which space has been reserved on the disk paging file.) Gets the value of the . Value returned by for the current instance. This counter displays the total number of AppDomains unloaded since the start of the application. If an AppDomain is loaded and unloaded multiple times this counter would count each of those unloads as separate. Gets the value of the . Value returned by for the current instance. This counter displays the number of AppDomains unloaded per second. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. Stats for CLR Security. This counter displays the total number of runtime Code Access Security (CAS) checks performed since the start of the application. Runtime CAS checks are performed when a caller makes a call to a callee demanding a particular permission; the runtime check is made on every call by the caller; the check is done by examining the current thread stack of the caller. This counter used together with "Stack Walk Depth" is indicative of performance penalty for security checks. Gets the value of the . Value returned by for the current instance. Reserved for future use. Gets the value of the . Value returned by for the current instance. This counter displays the total number of linktime Code Access Security (CAS) checks since the start of the application. Linktime CAS checks are performed when a caller makes a call to a callee demanding a particular permission at JIT compile time; linktime check is performed once per caller. This count is not indicative of serious performance issues; its indicative of the security system activity. Gets the value of the . Value returned by for the current instance. This counter displays the percentage of elapsed time spent in performing runtime Code Access Security (CAS) checks since the last such check. CAS allows code to be trusted to varying degrees and enforces these varying levels of trust depending on code identity. This counter is updated at the end of a runtime security check; it represents the last observed value; its not an average. Gets the value of the . Value returned by for the current instance. Not Displayed. Gets the value of the . Value returned by for the current instance. This counter displays the depth of the stack during that last runtime Code Access Security check. Runtime Code Access Security check is performed by crawling the stack. This counter is not an average; it just displays the last observed value. Gets the value of the . Value returned by for the current instance. Stats for CLR Jit. This counter displays the total number of methods compiled Just-In-Time (JIT) by the CLR JIT compiler since the start of the application. This counter does not include the pre-jitted methods. Gets the value of the . Value returned by for the current instance. This counter displays the total IL bytes jitted since the start of the application. This counter is exactly equivalent to the "Total # of IL Bytes Jitted" counter. Gets the value of the . Value returned by for the current instance. This counter displays the total IL bytes jitted since the start of the application. This counter is exactly equivalent to the "# of IL Bytes Jitted" counter. Gets the value of the . Value returned by for the current instance. This counter displays the rate at which IL bytes are jitted per second. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the peak number of methods the JIT compiler has failed to JIT since the start of the application. This failure can occur if the IL cannot be verified or if there was an internal error in the JIT compiler. Gets the value of the . Value returned by for the current instance. This counter displays the percentage of elapsed time spent in JIT compilation since the last JIT compilation phase. This counter is updated at the end of every JIT compilation phase. A JIT compilation phase is the phase when a method and its dependencies are being compiled. Gets the value of the . Value returned by for the current instance. Not Displayed. Gets the value of the . Value returned by for the current instance. Stats for CLR Locks and Threads. This counter displays the total number of times threads in the CLR have attempted to acquire a managed lock unsuccessfully. Managed locks can be acquired in many ways; by the "lock" statement in C# or by calling System.Monitor.Enter or by using MethodImplOptions.Synchronized custom attribute. Gets the value of the . Value returned by for the current instance. Rate at which threads in the runtime attempt to acquire a managed lock unsuccessfully. Managed locks can be acquired in many ways; by the "lock" statement in C# or by calling System.Monitor.Enter or by using MethodImplOptions.Synchronized custom attribute. Gets the value of the . Value returned by for the current instance. This counter displays the total number of threads currently waiting to acquire some managed lock in the application. This counter is not an average over time; it displays the last observed value. Gets the value of the . Value returned by for the current instance. This counter displays the total number of threads that waited to acquire some managed lock since the start of the application. Gets the value of the . Value returned by for the current instance. This counter displays the number of threads per second waiting to acquire some lock in the application. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. This counter displays the number of current .NET thread objects in the application. A .NET thread object is created either by new System.Threading.Thread or when an unmanaged thread enters the managed environment. This counters maintains the count of both running and stopped threads. This counter is not an average over time; it just displays the last observed value. Gets the value of the . Value returned by for the current instance. This counter displays the number of native OS threads created and owned by the CLR to act as underlying threads for .NET thread objects. This counters value does not include the threads used by the CLR in its internal operations; it is a subset of the threads in the OS process. Gets the value of the . Value returned by for the current instance. This counter displays the number of threads that are currently recognized by the CLR; they have a corresponding .NET thread object associated with them. These threads are not created by the CLR; they are created outside the CLR but have since run inside the CLR at least once. Only unique threads are tracked; threads with same thread ID re-entering the CLR or recreated after thread exit are not counted twice. Gets the value of the . Value returned by for the current instance. This counter displays the total number of threads that have been recognized by the CLR since the start of this application; these threads have a corresponding .NET thread object associated with them. These threads are not created by the CLR; they are created outside the CLR but have since run inside the CLR at least once. Only unique threads are tracked; threads with same thread ID re-entering the CLR or recreated after thread exit are not counted twice. Gets the value of the . Value returned by for the current instance. This counter displays the number of threads per second that have been recognized by the CLR; these threads have a corresponding .NET thread object associated with them. These threads are not created by the CLR; they are created outside the CLR but have since run inside the CLR at least once. Only unique threads are tracked; threads with same thread ID re-entering the CLR or recreated after thread exit are not counted twice. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval. Gets the value of the . Value returned by for the current instance. Counters for System.Data.OracleClient The number of actual connections per second that are being made to servers Gets the value of the . Value returned by . The number of actual disconnects per second that are being made to servers Gets the value of the . Value returned by . The number of connections we get from the pool per second Gets the value of the . Value returned by . The number of connections we return to the pool per second Gets the value of the . Value returned by . The number of connections that are not using connection pooling Gets the value of the . Value returned by . The number of connections that are managed by the connection pooler Gets the value of the . Value returned by . The number of unique connection strings Gets the value of the . Value returned by . The number of unique connection strings waiting for pruning Gets the value of the . Value returned by . The number of connection pools Gets the value of the . Value returned by . The number of connection pools Gets the value of the . Value returned by . The number of connections currently in-use Gets the value of the . Value returned by . The number of connections currently available for use Gets the value of the . Value returned by . The number of connections currently waiting to be made ready for use Gets the value of the . Value returned by . The number of connections we reclaim from GCed from external connections Gets the value of the . Value returned by . Summary description for PostItAttribute. Tag use to mark a method that writes data to a device. Reflection Assertion class 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. Asserts that the type has a default public constructor 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 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 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. This tag defines test method that will be repeated the specified number of times. Tags methods to execute database operation in its own database transaction. This attribute was invented by Roy Osherove ( http://weblogs.asp.net/rosherove/). When used as parameter in a row test, it will be replaced by null (Nothing in VB). Provides a row of values using in conjunction with to bind values to the parameters of a row test method. Provides a row of values using in conjunction with to bind values to the parameters of a row test method. The row of values to bind Gets the row of values. The row of values Gets the row of values. Each one will be converted (if posible) to the type of the corresponding argument in the test method. List of parameters. The row of values. Gets or sets the type of exception that is expected to be thrown when this row is tested, or null if none. Declares a row test when applied to a test method along with one or more attributes. Security Assertion class 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 . 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 role. Verifies that the type is serializable with the XmlSerializer object. type to test. Serializes and deserialies to/from XML and checks that the results are the same. Object to test Tag use to mark a method that initiliazes the fixture instance. String Assertion class Asserts that two strings are equal, ignoring the case Expected string Actual string 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 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 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. Asserts the string does not contain c String to test. Variable list of characeters. Tag use to mark a method that cleans up the resource of the fixture instance. Tag use to mark a mark a unit test method. Contributes additional tests and setup or teardown steps to the lifecycle defined by . Called to add runs to perform before setup. The collection to update Called to add runs to perform during the test execution cycle. The collection to update Called to add runs to perform after teardown. The collection to update Creates an order of execution in the fixture. This fixture is used to implement the Process testing advertised by Marc Clifton' Code Project article. Initializes a new instance of with the given order. order of execution Initializes a new instance of with the given order and description. order of execution description of the test Returns a string that represents the instance. String representing the object. Gets or sets the order execution The order of execution This tag defines test method that will invoke the method in the specified number of concurrent threads. Gets a list of values separated by ; Enumeration Pattern implementations. Implements:Enumeration Test Pattern Login: {DataProvider} {CopyToProvider} [SetUp] (EnumerationTester) - GetEnumerator - Enumerate - ElementWiseEquality - Current - CurrentWithoutMoveNet - CurrentPastEnd - Reset - CollectionChanged [TearDown] This example tests the and . Could not find . Creates an exception with a type and an inner exception. Error type Inner exception Default constructor XPath to the desired data Constructor with a fixture description XPath to the desired data fixture description Summary description for ForEachTestRunInvoker. The MbUnit.Framework contains the set of built-in attributes. Use the static methods of to test your assertions. You can also do security related assertion using , data related assertions using and XML related assertions using (which comes from XmlUnit, http://xmlunit.sourceforge.net) , Reflection based assertion and String and text based assertion . Process Test Pattern fixture. Implements: Process Test Fixture Logic: [SetUp] {TestSequence} [TearDown] This fixture implements the Process Test Fixture as described in the CodeProject article from Marc Clifton. In this implementation, reverse traversal is not implemented. A process can be seen as a linear graph, a very simple model. If you need more evolved models, use Model Based Testing. This is the example for the CodeProject article adapted to MbUnit. [ProcessTestFixture] public class POSequenceTest { ... [TestSequence(1)] public void POConstructor() { po=new PurchaseOrder(); Assert.AreEqual(po.Number,"", "Number not initialized."); Assert.AreEqual(po.PartCount,0, "PartCount not initialized."); Assert.AreEqual(po.ChargeCount,0, "ChargeCount not initialized."); Assert.AreEqual(po.Invoice,null, "Invoice not initialized."); Assert.AreEqual(po.Vendor,null, "Vendor not initialized."); } [TestSequence(2)] public void VendorConstructor() { vendor=new Vendor(); Assert.AreEqual(vendor.Name,"", "Name is not an empty string."); Assert.AreEqual(vendor.PartCount,0, "PartCount is not zero."); } ... Use to mark a class as process test fixture and use the attribute to create the order of the process. The fixture also supports SetUp and TearDown methods. Initialize a instance. Constructor with a fixture description fixture description Creates the execution logic See summary. A instance that represent the type test logic. A resource-based data provider A file-based data provider Default constructor XPath to the desired data Constructor with a fixture description XPath to the desired data fixture description A single test case of a . Initializes a new instance with name and delegate. Name of the test case Delegate called by the test case Parameters of the delegate or is a null reference (Nothing in Visual Basic) is empty. Invokes test using the parameters returned by . Gets the name of the test case The name of the test case Collection indexing test class Collection order tester class. Tests for the and . Simple Test Pattern fixture. Implements: Simple Test Pattern Login: [SetUp] {Test} [TearDown] This is the classic unit test fixture attribute. It defines a class that contains unit tests. The test execution logic is described by the following sequence of custom attributes: where [] denotes an optional attribute, {} denotes a custom attribute that can tag multiple number of methods. Unit test methods must be tagged with the , return void and take no arguments: [Test] public void UnitTest() { ... } The same fixture can hold an arbitrary number of unit test methods. If the fixture needs initilization, you can add a set up method tagged with the attribute. Note that there can be only one method tagged with . Symmetricaly, you can specify a method that will clean up resources allocated by the fixture. This method must be tagged with the and there can be only one method with this attribute. This example shows a test fixture class implementing the Simple Test pattern. It tests image based method of the Graphics class in GDI+. A set up method (tagged by is used to create a new bitmap, while a tear down (tagged by ) is used to released the bitmap. [TestFixture("Bitmap")] public GraphicsAndBitmapTest { private Bitmap bmp; [SetUp] public void SetUp() { this.bmp = new Bitmap(300,300); } [Test] public void CreateGraphics() { Graphics g = Graphcis.FromImage(this.bmp); Assert.IsNotNull(g); Assert.AreEqual(g.Width,this.bmp.Width); ... } ... [TearDown] public void TearDownCanHaveOtherNames() { if(this.bmp!=null) this.bmp.Dispose(); } } Default constructor Constructor with a fixture description fixture description Creates the execution logic See summary. A instance that represent the type test logic. This example shows a test fixture class implementing the Simple Test pattern. It tests image based method of the Graphics class in GDI+. A set up method (tagged by is used to create a new bitmap, while a tear down (tagged by ) is used to released the bitmap. [TestFixture("Bitmap")] public GraphicsAndBitmapTest { private Bitmap bmp; [SetUp] public void SetUp() { this.bmp = new Bitmap(300,300); } [Test] public void CreateGraphics() { Graphics g = Graphcis.FromImage(this.bmp); Assert.IsNotNull(g); Assert.AreEqual(g.Width,this.bmp.Width); ... } ... [TearDown] public void TearDownCanHaveOtherNames() { if(this.bmp!=null) this.bmp.Dispose(); } } A named collection of uniquely named . Initializes a instance with . name of the suite is a null reference (Nothing in Visual Basic) is empty. Adds the test case to the suite instance to add. The suite already contains a test case named . Removes the test case from the suite Test case to remove is a null reference (Nothing in Visual Basic) Adds a new to the suite. Name of the new test case invoked by the test case parameters sent to when invoked is a null reference (Nothing in Visual Basic) is empty. The suite already contains a test case named . Gets the name. The name. Gets a collection of . A collection of . Test Suite fixture. Default constructor Constructor with a fixture description fixture description Creates the execution logic See summary. A instance that represent the type test logic. This example shows a test fixture class implementing the Simple Test pattern. It tests image based method of the Graphics class in GDI+. A set up method (tagged by is used to create a new bitmap, while a tear down (tagged by ) is used to released the bitmap. [TestFixture("Bitmap")] public GraphicsAndBitmapTest { private Bitmap bmp; [SetUp] public void SetUp() { this.bmp = new Bitmap(300,300); } [Test] public void CreateGraphics() { Graphics g = Graphcis.FromImage(this.bmp); Assert.IsNotNull(g); Assert.AreEqual(g.Width,this.bmp.Width); ... } ... [TearDown] public void TearDownCanHaveOtherNames() { if(this.bmp!=null) this.bmp.Dispose(); } } Type fixture pattern implementation. Implements: Type Test Pattern Logic: {Provider} [SetUp] {Test} [TearDown] This fixture is quite similar to the Simple Test pattern, but it applies to any instance of a particular type provided by the user. The test fixture first looks for methods tagged with the method. These method must return an object assignable with the tested type. This instance will be feeded to the other methods of the fixture. This example shows the squeleton of a fixture tests the IDictionary interface, the fixture implements the Type Test pattern. The tested instances are feeded by the methods tagged with the . These methods must return an instance that is assignable with . Subsequent will receive the created instance as parameter. [TypeFixture(typeof(IDictionary),"IDictionary interface fixture")] public void DictionaryTest { [Provider(typeof(Hashtable))] public Hashtable ProvideHashtable() { return new Hashtable(); } [Provider(typeof(SortedList))] public SortedList ProvideSortedList() { return new SortedList(); } // tests [Test] [ExpectedException(typeof(ArgumentException))] public void AddDuplicate(IDictionary dic) // dic comes from a provider class { dic.Add("key",null); dic.Add("key",null); // boom } } Creates a fixture for the type. Initializes the attribute with . type to apply the fixture to testedType is a null reference Creates a fixture for the type and a description Initializes the attribute with . type to apply the fixture to description of the fixture testedType is a null reference Creates the execution logic See summary. A instance that represent the type test logic. This example shows the squeleton of a fixture tests the IDictionary interface, the fixture implements the Type Test pattern. The tested instances are feeded by the methods tagged with the . These methods must return an instance that is assignable with . Subsequent will receive the created instance as parameter. [TypeFixture(typeof(IDictionary),"IDictionary interface fixture")] public void DictionaryTest { [Provider(typeof(Hashtable))] public Hashtable ProvideHashtable() { return new Hashtable(); } [Provider(typeof(SortedList))] public SortedList ProvideSortedList() { return new SortedList(); } // tests [Test] [ExpectedException(typeof(ArgumentException))] public void AddDuplicate(IDictionary dic) // dic comes from a provider class { dic.Add("key",null); dic.Add("key",null); // boom } } Gets a list of member names separated by ; A with verified result. Web related assertions. Verifies that has ViewState enabled. Verifies that has not ViewState enabled. Verifies that is visible. Verifies that is not visible. Verifies that ID is equal to . Verifies that has child controls. Verifies that has no child controls. Verifies that the property of and are equal. Verifies that the property of is equal to are equal. Verifies that is a child control of Verifies that is the ID of a child control of Verifies that is a not child control of Verifies that is the not ID of a child control of Verifies that the property of is equal to . Verifies that the property of is equal to . Verifies that the property of is true. Verifies that the property of is false. Verifies that the property of is true. Verifies that the property of is false. Verifies that the property of is true. Verifies that the property of is false. Tag use to mark a method that writes data to a device. Comparing an implied attribute value against an explicit value Comparing 2 elements and one has an attribute the other does not Comparing 2 attributes with the same name but different values Comparing 2 attribute lists with the same attributes in different sequence Comparing 2 CDATA sections with different values Comparing 2 comments with different values Comparing 2 document types with different names Comparing 2 document types with different public identifiers Comparing 2 document types with different system identifiers Comparing 2 elements with different tag names Comparing 2 elements with different number of attributes Comparing 2 processing instructions with different targets Comparing 2 processing instructions with different instructions Comparing 2 different text values Comparing 2 nodes with different namespace prefixes Comparing 2 nodes with different namespace URIs Comparing 2 nodes with different node types Comparing 2 nodes but only one has any children Comparing 2 nodes with different numbers of children Comparing 2 nodes with children whose nodes are in different sequence Comparing 2 Documents only one of which has a doctype Comparing 2 Documents only one of which has an XML Prefix Declaration Summary description for FlowControlException. The MbUnit.Framework.Xml contains Xml-specific assertion. The classes of this namespace are extracted from the XmlUnit project. /* ****************************************************************** Copyright (c) 2001, Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the xmlunit.sourceforge.net nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ****************************************************************** */