NUnit.Framework
Namespace with 84 public types
Classes
ApartmentAttribute
Marks a test that must run in a particular threading apartment state, causing it
to run in a separate thread if necessary.
Assert
The Assert class contains a collection of static methods that
implement the most common assertions used in NUnit.
AssertionException
AssertionHelper
AssertionHelper is an optional base class for user tests,
allowing the use of shorter ids for constraints and
asserts and avoiding conflict with the definition of
, 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.
AuthorAttribute
Provides the Author of a test or test fixture.
CategoryAttribute
Attribute used to apply a category to a test
CollectionAssert
CombinatorialAttribute
Marks a test to use a combinatorial join of any argument
data provided. Since this is the default, the attribute is
optional.
Contains
CultureAttribute
CultureAttribute is used to mark a test fixture or an
individual method as applying to a particular Culture only.
DatapointAttribute
Used to mark a field for use as a datapoint when executing a theory
within the same fixture that requires an argument of the field's Type.
DatapointsAttribute
Used to mark a field, property or method providing a set of datapoints to
be used in executing any theories within the same fixture that require an
argument of the Type provided. The data source may provide an array of
the required Type or an .
Synonymous with DatapointSourceAttribute.
DatapointSourceAttribute
Used to mark a field, property or method providing a set of datapoints to
be used in executing any theories within the same fixture that require an
argument of the Type provided. The data source may provide an array of
the required Type or an .
Synonymous with DatapointsAttribute.
DescriptionAttribute
Attribute used to provide descriptive text about a
test case or fixture.
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.
Has
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
InconclusiveException
Is
Iz
LevelOfParallelismAttribute
LevelOfParallelismAttribute is used to set the number of worker threads
that may be allocated by the framework for running tests.
List
ListMapper
MaxTimeAttribute
Summary description for MaxTimeAttribute.
OneTimeSetUpAttribute
Attribute used to identify a method that is called once
to perform setup before any child tests are run.
OneTimeTearDownAttribute
Attribute used to identify a method that is called once
after all the child tests have run. The method is
guaranteed to be called, even if an exception is thrown.
OrderAttribute
Defines the order that the test will run in
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.
ParallelizableAttribute
ParallelizableAttribute is used to mark tests that may be run in parallel.
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.
RepeatAttribute
RepeatAttribute may be applied to test case in order
to run it multiple times.
RequiresMTAAttribute
Marks a test that must run in the MTA, causing it
to run in a separate thread if necessary.
On methods, you may also use MTAThreadAttribute
to serve the same purpose.
RequiresSTAAttribute
Marks a test that must run in the STA, causing it
to run in a separate thread if necessary.
RequiresThreadAttribute
Marks a test that must run on a separate thread.
RetryAttribute
RepeatAttribute may be applied to test case in order
to run it multiple times.
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.
SetUpFixtureAttribute
SetUpFixtureAttribute is used to identify a SetUpFixture
SingleThreadedAttribute
SingleThreadedAttribute applies to a test fixture and indicates
that all the child tests must be run on the same thread as the
OneTimeSetUp and OneTimeTearDown. It sets a flag in the
TestExecutionContext and forces all tests to be run sequentially
on the current thread. Any ParallelScope setting is ignored.
StringAssert
SuccessException
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.
TestAssemblyDirectoryResolveAttribute
TestAssemblyDirectoryResolveAttribute is used to mark a test assembly as needing a
special assembly resolution hook that will explicitly search the test assembly's
directory for dependent assemblies. This works around a conflict between mixed-mode
assembly initialization and tests running in their own AppDomain in some cases.
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
TestCaseSourceAttribute
TestContext
TestFixtureAttribute
TestFixtureData
TestFixtureSetUpAttribute
TestFixtureSourceAttribute
TestFixtureTearDownAttribute
TestOfAttribute
TheoryAttribute
Throws
TimeoutAttribute
ValuesAttribute
ValueSourceAttribute
Enumerations
ActionTargets
The different targets a test action attribute can be applied to
ParallelScope
The ParallelScope enumeration permits specifying the degree to
which a test and its descendants may be run in parallel.
SpecialValue
Static Classes
DirectoryAssert
Does
FileAssert
GlobalSettings
Abstract Classes
CombiningStrategyAttribute
Marks a test to use a particular CombiningStrategy to join
any parameter data provided. Since this is the default, the
attribute is optional.
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.
IncludeExcludeAttribute
Abstract base for Attributes that are used to include tests
in the test run based on environmental settings.
NUnitAttribute
The abstract base class for all custom attributes defined by NUnit.
ResultStateException
TestActionAttribute
Provide actions to execute before and after tests.
Interfaces
ITestAction