IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
PlatformAttribute is used to mark a test fixture or an individual method as applying to a particular platform only. More...
Public Member Functions | |
PlatformAttribute () | |
Constructor with no platforms specified, for use with named property syntax. More... | |
PlatformAttribute (string platforms) | |
Constructor taking one or more platforms More... | |
void | ApplyToTest (Test test) |
Causes a test to be skipped if this PlatformAttribute is not satisfied. More... | |
![]() | |
IncludeExcludeAttribute () | |
Constructor with no included items specified, for use with named property syntax. More... | |
IncludeExcludeAttribute (string include) | |
Constructor taking one or more included items More... | |
![]() | |
NUnitAttribute () | |
Default constructor More... | |
Private Attributes | |
PlatformHelper | platformHelper = new PlatformHelper() |
Additional Inherited Members | |
![]() | |
string | Include [get, set] |
Name of the item that is needed in order for a test to run. Multiple items may be given, separated by a comma. More... | |
string | Exclude [get, set] |
Name of the item to be excluded. Multiple items may be given, separated by a comma. More... | |
string | Reason [get, set] |
The reason for including or excluding the test More... | |
PlatformAttribute is used to mark a test fixture or an individual method as applying to a particular platform only.
|
inline |
Constructor with no platforms specified, for use with named property syntax.
|
inline |
Constructor taking one or more platforms
platforms | Comma-delimited list of platforms |
|
inline |
Causes a test to be skipped if this PlatformAttribute is not satisfied.
test | The test to modify |
Implements NUnit.Framework.Interfaces.IApplyToTest.
References NUnit.Framework.Interfaces.IPropertyBag.Add(), NUnit.Framework.Internal.PlatformHelper.IsPlatformSupported(), NUnit.Framework.Internal.Test.Properties, NUnit.Framework.Internal.PlatformHelper.Reason, NUnit.Framework.Internal.Test.RunState, and NUnit.Framework.Internal.PropertyNames.SkipReason.
Referenced by NUnit.Framework.Attributes.ApplyToTestTests.PlatformAttributeDoesNotAffectNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.PlatformAttributeRunsTest(), and NUnit.Framework.Attributes.ApplyToTestTests.PlatformAttributeSkipsTest().
|
private |