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
NUnit.Framework.IgnoreAttribute Class Reference

Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run. More...

+ Inheritance diagram for NUnit.Framework.IgnoreAttribute:
+ Collaboration diagram for NUnit.Framework.IgnoreAttribute:

Public Member Functions

 IgnoreAttribute (string reason)
 Constructs the attribute giving a reason for ignoring the test More...
 
void ApplyToTest (Test test)
 Modifies a test by marking it as Ignored. More...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 NUnitAttribute ()
 Default constructor More...
 

Properties

string Until [get, set]
 The date in the future to stop ignoring the test as a string in UTC time. For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. More...
 

Private Attributes

string _reason
 
DateTime _untilDate
 
string _until
 

Detailed Description

Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run.

Constructor & Destructor Documentation

NUnit.Framework.IgnoreAttribute.IgnoreAttribute ( string  reason)
inline

Constructs the attribute giving a reason for ignoring the test

Parameters
reasonThe reason for ignoring the test

Member Function Documentation

Member Data Documentation

string NUnit.Framework.IgnoreAttribute._reason
private
DateTime NUnit.Framework.IgnoreAttribute._untilDate
private
string NUnit.Framework.IgnoreAttribute._until
private

Property Documentation

string NUnit.Framework.IgnoreAttribute.Until
getset

The date in the future to stop ignoring the test as a string in UTC time. For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC.

Once the ignore until date has passed, the test will be marked as runnable. Tests with an ignore until date will have an IgnoreUntilDate property set which will appear in the test results.

Exceptions
FormatExceptionThe string does not contain a valid string representation of a date and time.

The documentation for this class was generated from the following file: