NUnit.Framework Namespace

Documentation for this section has not yet been entered.

Remarks

To be added.

Classes

TypeReason
Assert The Assert class contains a collection of static methods that implement the most common assertions used in NUnit.
AssertionException Thrown when an assertion failed.
AssertionHelper AssertionHelper is an optional base class for user tests, allowing the use of shorter names for constraints and asserts and avoiding conflict with the definition of NUnit.Framework.Is, from which it inherits much of its behavior, in certain mock object frameworks.
Assume Provides static methods to express the assumptions that must be met for a test to give a meaningful result. If an assumption is not met, the test should produce an inconclusive result.
CategoryAttribute Attribute used to apply a category to a test
CombinatorialAttribute Marks a test to use a combinatorial join of any argument data provided. Since this is the default, the attribute is not needed.
ContainsDocumentation for this section has not yet been entered.
CultureAttribute CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only.
DataAttribute The abstract base class for all data-providing attributes defined by NUnit. Used to select all data sources for a method, class or parameter.
DatapointAttributeDocumentation for this section has not yet been entered.
DatapointsAttributeDocumentation for this section has not yet been entered.
DatapointSourceAttributeDocumentation for this section has not yet been entered.
DescriptionAttribute Attribute used to provide descriptive text about a test case or fixture.
ExpectedExceptionAttribute ExpectedExceptionAttribute
ExpectedExceptionDecoratorDocumentation for this section has not yet been entered.
ExplicitAttribute ExplicitAttribute marks a test or test fixture so that it will only be run if explicitly executed from the gui or command line or if it is included by use of a filter. The test will not be run simply because an enclosing suite is run.
GlobalSettings GlobalSettings is a place for setting default values used by the framework in performing asserts.
GuardDocumentation for this section has not yet been entered.
Has Helper class with properties and methods that supply a number of constraints used in Asserts.
IExpectException Interface implemented by a user fixture in order to validate any expected exceptions. It is only called for test methods marked with the ExpectedException attribute.
IgnoreAttribute Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run.
IgnoreException Thrown when an assertion failed.
IncludeExcludeAttribute Abstract base for Attributes that are used to include tests in the test run based on environmental settings.
InconclusiveException Thrown when a test executes inconclusively.
Is Helper class with properties and methods that supply a number of constraints used in Asserts.
Iz The Iz class is a synonym for Is intended for use in VB, which regards Is as a keyword.
ListMapper ListMapper is used to transform a collection used as an actual argument producing another collection to be used in the assertion.
MaxTimeAttribute Summary description for MaxTimeAttribute.
MessageMatch Enumeration indicating how the expected message parameter is to be used
NUnitAttribute The abstract base class for all custom attributes defined by NUnit.
PairwiseAttribute Marks a test to use a pairwise join of any argument data provided. Arguments will be combined in such a way that all possible pairs of arguments are used.
PlatformAttribute PlatformAttribute is used to mark a test fixture or an individual method as applying to a particular platform only.
PostTestAttribute Attribute used to mark a class that contains one-time SetUp and/or TearDown methods that apply to all the tests in a namespace or an assembly.
PreTestAttribute Attribute used to mark a class that contains one-time SetUp and/or TearDown methods that apply to all the tests in a namespace or an assembly.
PropertyAttribute PropertyAttribute is used to attach information to a test as a name/value pair..
RandomAttribute RandomAttribute is used to supply a set of random values to a single parameter of a parameterized test.
RangeAttribute RangeAttribute is used to supply a range of values to an individual parameter of a parameterized test.
RequiredAddinAttribute RequiredAddinAttribute may be used to indicate the names of any addins that must be present in order to run some or all of the tests in an assembly. If the addin is not loaded, the entire assembly is marked as NotRunnable.
SequentialAttribute Marks a test to use a Sequential join of any argument data provided. Arguments will be combined into test cases, taking the next value of each argument until all are used.
SetCultureAttribute Summary description for SetCultureAttribute.
SetUICultureAttribute Summary description for SetUICultureAttribute.
SetUpAttribute Attribute used to mark a class that contains one-time SetUp and/or TearDown methods that apply to all the tests in a namespace or an assembly.
SpecialValue The SpecialValue enum is used to represent TestCase arguments that cannot be used as arguments to an Attribute.
StackFilterDocumentation for this section has not yet been entered.
SuccessException Thrown when an assertion failed.
TearDownAttribute Attribute used to identify a method that is called immediately after each test is run. The method is guaranteed to be called, even if an exception is thrown.
TestAttribute Adding this attribute to a method within a class makes the method callable from the NUnit test runner. There is a property called Description which is optional which you can provide a more detailed test description. This class cannot be inherited.
TestCaseAttribute TestCaseAttribute is used to mark parameterized test cases and provide them with their arguments.
TestCaseData The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It provides a number of instance modifiers for use in initializing the test case. Note: Instance modifiers are getters that return the same instance after modifying it's state.
TestCaseSourceAttribute TestCaseSourceAttribute indicates the source to be used to provide test cases for a test method.
TestContext Provide the context information of the current test. This is an adapter for the internal ExecutionContext class, hiding the internals from the user test.
TestContext+ResultAdapter ResultAdapter adapts a TestResult for consumption by the user test code.
TestContext+TestAdapter TestAdapter adapts a Test for consumption by the user test code.
TestDelegate Delegate used by tests that execute code and capture any thrown exception.
TestFixtureAttributeDocumentation for this section has not yet been entered.
TestFixtureSetUpAttribute Attribute used to identify a method that is called before any tests in a fixture are run.
TestFixtureTearDownAttribute Attribute used to identify a method that is called after all the tests in a fixture have run. The method is guaranteed to be called, even if an exception is thrown.
TextMessageWriter TextMessageWriter writes constraint descriptions and messages in displayable form as a text stream. It tailors the display of individual message components to form the standard message format of NUnit assertion failure messages.
TheoryAttributeDocumentation for this section has not yet been entered.
Throws Helper class with properties and methods that supply constraints that operate on exceptions.
TimeoutAttributeDocumentation for this section has not yet been entered.
ValuesAttributeDocumentation for this section has not yet been entered.
ValueSourceAttribute ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.