IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run. More...
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... | |
![]() | |
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 |
Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run.
|
inline |
Constructs the attribute giving a reason for ignoring the test
reason | The reason for ignoring the test |
|
inline |
Modifies a test by marking it as Ignored.
test | The test to modify |
Implements NUnit.Framework.Interfaces.IApplyToTest.
References NUnit.Framework.Internal.PropertyNames.IgnoreUntilDate, NUnit.Framework.Internal.Test.Properties, NUnit.Framework.Internal.Test.RunState, NUnit.Framework.Interfaces.IPropertyBag.Set(), and NUnit.Framework.Internal.PropertyNames.SkipReason.
Referenced by NUnit.Framework.Attributes.ApplyToTestTests.ExplicitAttributeWithIgnoreIgnoresTest(), NUnit.Framework.Attributes.ApplyToTestTests.IgnoreAttributeDoesNotAffectNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.IgnoreAttributeIgnoresTest(), NUnit.Framework.Attributes.ApplyToTestTests.IgnoreAttributeSetsIgnoreReason(), and NUnit.Framework.Attributes.ApplyToTestTests.IgnoreAttributeWithExplicitIgnoresTest().
|
private |
|
private |
|
private |
|
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.
FormatException | The string does not contain a valid string representation of a date and time. |