IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only. More...
Public Member Functions | |
CultureAttribute () | |
Constructor with no cultures specified, for use with named property syntax. More... | |
CultureAttribute (string cultures) | |
Constructor taking one or more cultures More... | |
void | ApplyToTest (Test test) |
Causes a test to be skipped if this CultureAttribute is not satisfied. More... | |
bool | IsCultureSupported (string culture) |
Test to determine if the a particular culture or comma- delimited set of cultures is in use. More... | |
bool | IsCultureSupported (string[] cultures) |
Test to determine if one of a collection of cultures is being used currently. 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 Member Functions | |
bool | IsCultureSupported () |
Tests to determine if the current culture is supported based on the properties of this attribute. More... | |
Private Attributes | |
CultureDetector | cultureDetector = new CultureDetector() |
CultureInfo | currentCulture = CultureInfo.CurrentCulture |
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... | |
CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only.
|
inline |
Constructor with no cultures specified, for use with named property syntax.
|
inline |
Constructor taking one or more cultures
cultures | Comma-deliminted list of cultures |
|
inline |
Causes a test to be skipped if this CultureAttribute is not satisfied.
test | The test to modify |
Implements NUnit.Framework.Interfaces.IApplyToTest.
References 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.CultureAttributeDoesNotAffectNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.CultureAttributeExcludingCurrentCultureSkipsTest(), NUnit.Framework.Attributes.ApplyToTestTests.CultureAttributeExcludingOtherCultureRunsTest(), NUnit.Framework.Attributes.ApplyToTestTests.CultureAttributeIncludingCurrentCultureRunsTest(), NUnit.Framework.Attributes.ApplyToTestTests.CultureAttributeIncludingOtherCultureSkipsTest(), and NUnit.Framework.Attributes.ApplyToTestTests.CultureAttributeWithMultipleCulturesIncluded().
|
inlineprivate |
Tests to determine if the current culture is supported based on the properties of this attribute.
References NUnit.Framework.Internal.CultureDetector.IsCultureSupported().
|
inline |
Test to determine if the a particular culture or comma- delimited set of cultures is in use.
culture | Name of the culture or comma-separated list of culture ids |
|
inline |
Test to determine if one of a collection of cultures is being used currently.
cultures |
|
private |
|
private |