IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Package NUnit.Framework

Namespaces

package  Api
 
package  Assertions
 
package  Attributes
 
package  Compatibility
 
package  Constraints
 
package  Interfaces
 
package  Internal
 
package  Syntax
 
package  Tests
 

Classes

class  ApartmentAttribute
 Marks a test that must run in a particular threading apartment state, causing it to run in a separate thread if necessary. More...
 
class  Assert
 The Assert class contains a collection of static methods that implement the most common assertions used in NUnit. More...
 
class  AssertionException
 Thrown when an assertion failed. More...
 
class  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 Is, from which it inherits much of its behavior, in certain mock object frameworks. More...
 
class  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. More...
 
class  AuthorAttribute
 Provides the Author of a test or test fixture. More...
 
class  CategoryAttribute
 Attribute used to apply a category to a test More...
 
class  CollectionAssert
 A set of Assert methods operating on one or more collections More...
 
class  CombinatorialAttribute
 Marks a test to use a combinatorial join of any argument data provided. Since this is the default, the attribute is optional. More...
 
class  CombiningStrategyAttribute
 Marks a test to use a particular CombiningStrategy to join any parameter data provided. Since this is the default, the attribute is optional. More...
 
class  Contains
 Helper class with properties and methods that supply a number of constraints used in Asserts. More...
 
class  CultureAttribute
 CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only. More...
 
class  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. More...
 
class  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. More...
 
class  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 IEnumerable{T}. Synonymous with DatapointSourceAttribute. More...
 
class  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 IEnumerable{T}. Synonymous with DatapointsAttribute. More...
 
class  DescriptionAttribute
 Attribute used to provide descriptive text about a test case or fixture. More...
 
class  DirectoryAssert
 Asserts on Directories More...
 
class  Does
 Helper class with properties and methods that supply a number of constraints used in Asserts. More...
 
class  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. More...
 
class  FileAssert
 Asserts on Files More...
 
class  GlobalSettings
 GlobalSettings is a place for setting default _values used by the framework in performing asserts. More...
 
class  Has
 Helper class with properties and methods that supply a number of constraints used in Asserts. More...
 
class  IgnoreAttribute
 Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run. More...
 
class  IgnoreException
 Thrown when an assertion failed. More...
 
class  IncludeExcludeAttribute
 Abstract base for Attributes that are used to include tests in the test run based on environmental settings. More...
 
class  InconclusiveException
 Thrown when a test executes inconclusively. More...
 
class  Is
 Helper class with properties and methods that supply a number of constraints used in Asserts. More...
 
interface  ITestAction
 When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. More...
 
class  Iz
 The Iz class is a synonym for Is intended for use in VB, which regards Is as a keyword. More...
 
class  LevelOfParallelismAttribute
 LevelOfParallelismAttribute is used to set the number of worker threads that may be allocated by the framework for running tests. More...
 
class  List
 The List class is a helper class with properties and methods that supply a number of constraints used with lists and collections. More...
 
class  ListMapper
 ListMapper is used to transform a collection used as an actual argument producing another collection to be used in the assertion. More...
 
class  MaxTimeAttribute
 Summary description for MaxTimeAttribute. More...
 
class  NUnitAttribute
 The abstract base class for all custom attributes defined by NUnit. More...
 
class  OneTimeSetUpAttribute
 Attribute used to identify a method that is called once to perform setup before any child tests are run. More...
 
class  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. More...
 
class  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. More...
 
class  ParallelizableAttribute
 ParallelizableAttribute is used to mark tests that may be run in parallel. More...
 
class  PlatformAttribute
 PlatformAttribute is used to mark a test fixture or an individual method as applying to a particular platform only. More...
 
class  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. More...
 
class  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. More...
 
class  PropertyAttribute
 PropertyAttribute is used to attach information to a test as a name/value pair.. More...
 
class  RandomAttribute
 RandomAttribute is used to supply a set of random _values to a single parameter of a parameterized test. More...
 
class  RangeAttribute
 RangeAttribute is used to supply a range of _values to an individual parameter of a parameterized test. More...
 
class  RepeatAttribute
 RepeatAttribute may be applied to test case in order to run it multiple times. More...
 
class  RequiresMTAAttribute
 Marks a test that must run in the MTA, causing it to run in a separate thread if necessary. More...
 
class  RequiresSTAAttribute
 Marks a test that must run in the STA, causing it to run in a separate thread if necessary. More...
 
class  RequiresThreadAttribute
 Marks a test that must run on a separate thread. More...
 
class  ResultStateException
 Abstract base for Exceptions that terminate a test and provide a ResultState. More...
 
class  RetryAttribute
 RepeatAttribute may be applied to test case in order to run it multiple times. More...
 
class  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. More...
 
class  SetCultureAttribute
 Summary description for SetCultureAttribute. More...
 
class  SetUICultureAttribute
 Summary description for SetUICultureAttribute. More...
 
class  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. More...
 
class  SetUpFixtureAttribute
 SetUpFixtureAttribute is used to identify a SetUpFixture More...
 
class  StringAssert
 Basic Asserts on strings. More...
 
class  SuccessException
 Thrown when an assertion failed. More...
 
class  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. More...
 
class  TestActionAttribute
 Provide actions to execute before and after tests. More...
 
class  TestAttribute
 Adding this attribute to a method within a

See also
TestFixtureAttribute

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. More...

 
class  TestCaseAttribute
 TestCaseAttribute is used to mark parameterized test cases and provide them with their arguments. More...
 
class  TestCaseData
 The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It is derived from TestCaseParameters and adds a fluent syntax for use in initializing the test case. More...
 
class  TestCaseSourceAttribute
 TestCaseSourceAttribute indicates the source to be used to provide test cases for a test method. More...
 
class  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. More...
 
class  TestFixtureAttribute
 TestFixtureAttribute is used to mark a class that represents a TestFixture. More...
 
class  TestFixtureData
 The TestFixtureData class represents a set of arguments and other parameter info to be used for a parameterized fixture. It is derived from TestFixtureParameters and adds a fluent syntax for use in initializing the fixture. More...
 
class  TestFixtureSetUpAttribute
 Attribute used to identify a method that is called before any tests in a fixture are run. More...
 
class  TestFixtureSourceAttribute
 TestCaseSourceAttribute indicates the source to be used to provide test fixture instances for a test class. More...
 
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. More...
 
class  TestOfAttribute
 Indicates which class the test or test fixture is testing More...
 
class  TheoryAttribute
 Adding this attribute to a method within a

See also
TestFixtureAttribute

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. More...

 
class  Throws
 Helper class with properties and methods that supply constraints that operate on exceptions. More...
 
class  TimeoutAttribute
 Used on a method, marks the test with a timeout value in milliseconds. The test will be run in a separate thread and is cancelled if the timeout is exceeded. Used on a class or assembly, sets the default timeout for all contained test methods. More...
 
class  ValuesAttribute
 ValuesAttribute is used to provide literal arguments for an individual parameter of a test. More...
 
class  ValueSourceAttribute
 ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method. More...
 

Enumerations

enum  ActionTargets { ActionTargets.Default = 0, ActionTargets.Test = 1, ActionTargets.Suite = 2 }
 The different targets a test action attribute can be applied to More...
 
enum  ParallelScope { ParallelScope.None = 0, ParallelScope.Self = 1, ParallelScope.Children = 2, ParallelScope.Fixtures = 4 }
 The ParallelScope enumeration permits specifying the degree to which a test and its descendants may be run in parallel. More...
 
enum  SpecialValue { SpecialValue.Null }
 The SpecialValue enum is used to represent TestCase arguments that cannot be used as arguments to an Attribute. More...
 

Functions

delegate void TestDelegate ()
 Delegate used by tests that execute code and capture any thrown exception. More...
 

Enumeration Type Documentation

The different targets a test action attribute can be applied to

Enumerator
Default 

Default target, which is determined by where the action attribute is attached

Test 

Target a individual test case

Suite 

Target a suite of test cases

The ParallelScope enumeration permits specifying the degree to which a test and its descendants may be run in parallel.

Enumerator
None 

No Parallelism is permitted

Self 

The test itself may be run in parallel with others at the same level

Children 

Descendants of the test may be run in parallel with one another

Fixtures 

Descendants of the test down to the level of TestFixtures may be run in parallel

The SpecialValue enum is used to represent TestCase arguments that cannot be used as arguments to an Attribute.

Enumerator
Null 

Null represents a null value, which cannot be used as an argument to an attriute under .NET 1.x

Function Documentation