NUnit.Framework
Namespace with 80 public types
Classes
Assert
The Assert class contains a collection of static methods that
implement the most common assertions used in NUnit.
AssertionException
AssertionHelper
Assume
AuthorAttribute
CategoryAttribute
CollectionAssert
CombinatorialAttribute
Contains
CultureAttribute
DatapointAttribute
DatapointsAttribute
DatapointSourceAttribute
DescriptionAttribute
ExplicitAttribute
Has
IgnoreAttribute
IgnoreException
InconclusiveException
Is
Iz
LevelOfParallelismAttribute
List
ListMapper
MaxTimeAttribute
MultipleAssertException
NonTestAssemblyAttribute
OneTimeSetUpAttribute
OneTimeTearDownAttribute
OrderAttribute
PairwiseAttribute
ParallelizableAttribute
PostTestAttribute
PreTestAttribute
PropertyAttribute
RandomAttribute
RangeAttribute
RepeatAttribute
RetryAttribute
SequentialAttribute
SetUpAttribute
SetUpFixtureAttribute
SingleThreadedAttribute
StringAssert
SuccessException
TearDownAttribute
TestAssemblyDirectoryResolveAttribute
TestAttribute
TestCaseAttribute
TestCaseData
TestCaseSourceAttribute
TestContext
TestFixtureAttribute
TestFixtureAttribute is used to mark a class that represents a TestFixture.
TestFixtureData
TestFixtureSetUpAttribute
Attribute used to identify a method that is
called before any tests in a fixture are run.
TestFixtureSourceAttribute
TestCaseSourceAttribute indicates the source to be used to
provide test fixture instances for a test class.
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.
TestOfAttribute
Indicates which class the test or test fixture is testing
TestParameters
TestParameters class holds any named parameters supplied to the test run
TheoryAttribute
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.
Throws
Helper class with properties and methods that supply
constraints that operate on exceptions.
ValuesAttribute
ValuesAttribute is used to provide literal arguments for
an individual parameter of a test.
ValueSourceAttribute
ValueSourceAttribute indicates the source to be used to
provide data for one parameter of a test method.
Warn
Provides static methods to express conditions
that must be met for the test to succeed. If
any test fails, a warning is issued.
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
The SpecialValue enum is used to represent TestCase arguments
that cannot be used as arguments to an Attribute.
Static Classes
DirectoryAssert
Asserts on Directories
Does
Helper class with properties and methods that supply
a number of constraints used in Asserts.
FileAssert
Asserts on Files
GlobalSettings
GlobalSettings is a place for setting default values used
by the framework in performing asserts. Anything set through
this class applies to the entire test run. It should not normally
be used from within a test, since it is not thread-safe.
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
Abstract base for Exceptions that terminate a test and provide a ResultState.
TestActionAttribute
Provide actions to execute before and after tests.
Interfaces
ITestAction
When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.