iOS Guides | Samples

NUnit.Framework.Api Namespace

Remarks

 

Classes

TypeReason
AttributeDictionary
ExpectedExceptionData ExpectedExceptionData is a struct used within the framework to encapsulate information about an expected exception.
IDynamicTestCaseSource The ITestCaseSourceProvider interface is implemented by Types that are able to provide a test case source for use by a test method.
IParameterDataSource The IParameterDataSource interface is implemented by types that can provide data for a test method parameter.
IPropertyBag A PropertyBag represents a collection of name/value pairs that allows duplicate entries with the same key. Methods are provided for adding a new pair as well as for setting a key to a single value. All keys are strings but values may be of any type. Null values are not permitted, since a null entry represents the absence of the key. The entries in a PropertyBag are of two kinds: those that take a single value and those that take multiple values. However, the PropertyBag has no knowledge of which entries fall into each category and the distinction is entirely up to the code using the PropertyBag. When working with multi-valued properties, client code should use the Add method to add name/value pairs and indexing to retrieve a list of all values for a given key. For example: bag.Add("Tag", "one"); bag.Add("Tag", "two"); Assert.That(bag["Tag"], Is.EqualTo(new string[] { "one", "two" })); When working with single-valued propeties, client code should use the Set method to set the value and Get to retrieve the value. The GetSetting methods may also be used to retrieve the value in a type-safe manner while also providing default. For example: bag.Set("Priority", "low"); bag.Set("Priority", "high"); // replaces value Assert.That(bag.Get("Priority"), Is.EqualTo("high")); Assert.That(bag.GetSetting("Priority", "low"), Is.EqualTo("high"));
ITest Common interface supported by all representations of a test. Only includes informational fields. The Run method is specifically excluded to allow for data-only representations of a test.
ITestAssemblyBuilder The ITestAssemblyBuilder interface is implemented by a class that is able to build a suite of tests given an assembly or an assembly filename.
ITestAssemblyRunner The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly.
ITestCaseData The ITestCaseData interface is implemented by a class that is able to return complete testcases for use by a parameterized test method.
ITestCaseSource ITestCaseSource interface is implemented by Types that know how to return a set of ITestCaseData items for use by a test method.
ITestFilter Interface to be implemented by filters applied to tests. The filter applies when running the test, after it has been loaded, since this is the only time an ITest exists.
ITestListener The ITestListener interface is used internally to receive notifications of significant events while a test is being run. The events are propogated to clients by means of an AsyncCallback. NUnit extensions may also monitor these events.
ITestResult The ITestResult interface represents the result of a test.
IXmlNodeBuilder An object implementing IXmlNodeBuilder is able to build an XmlNode representation of itself and any children.
NodeList
PropertyEntry Immutable class that stores a property entry as a Name/Value pair.
ResultState The ResultState class represents the outcome of running a test. It contains two pieces of information. The Status of the test is an enum indicating whether the test passed, failed, was skipped or was inconclusive. The Label provides a more detailed breakdown for use by client runners.
RunState The RunState enum indicates whether a test can be executed. When used on a TestResult it may also indicate whether the test has been executed. See individual values for restrictions on use.
TestOutput The TestOutput class holds a unit of output from a test to either stdOut or stdErr
TestOutputType Enum representing the output destination It uses combinable flags so that a given output control can accept multiple types of output. Normally, each individual output uses a single flag value.
TestStatus The TestStatus enum indicates the result of running a test
XmlNode