Upravit

Sdílet prostřednictvím


NUnit.Framework Namespace

Classes

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 Is, from which it inherits much of its behavior, in certain mock object frameworks.

Assume
CategoryAttribute
CombinatorialAttribute
Contains
CultureAttribute
DataAttribute
DatapointAttribute
DatapointsAttribute
DatapointSourceAttribute
DescriptionAttribute

Attribute used to provide descriptive text about a test case or fixture.

ExpectedExceptionAttribute

ExpectedExceptionAttribute

ExpectedExceptionDecorator
ExplicitAttribute
GlobalSettings

GlobalSettings is a place for setting default values used by the framework in performing asserts.

Guard
Has

Helper class with properties and methods that supply a number of constraints used in Asserts.

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
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
MaxTimeAttribute
NUnitAttribute
PairwiseAttribute
PlatformAttribute
PostTestAttribute
PreTestAttribute
PropertyAttribute

PropertyAttribute is used to attach information to a test as a name/value pair..

RandomAttribute
RangeAttribute
SequentialAttribute
SetCultureAttribute
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.

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
TestCaseData
TestCaseSourceAttribute
TestContext
TestContext.ResultAdapter
TestContext.TestAdapter
TestFixtureAttribute
TestFixtureSetUpAttribute
TestFixtureTearDownAttribute
TheoryAttribute
Throws

Helper class with properties and methods that supply constraints that operate on exceptions.

TimeoutAttribute
ValuesAttribute
ValueSourceAttribute

Interfaces

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.

Enums

MessageMatch
SpecialValue

Delegates

TestDelegate

Delegate used by tests that execute code and capture any thrown exception.