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.CultureAttribute Class Reference

CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only. More...

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

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...
 
- Public Member Functions inherited from NUnit.Framework.IncludeExcludeAttribute
 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...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 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

- Properties inherited from NUnit.Framework.IncludeExcludeAttribute
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...
 

Detailed Description

CultureAttribute is used to mark a test fixture or an individual method as applying to a particular Culture only.

Constructor & Destructor Documentation

NUnit.Framework.CultureAttribute.CultureAttribute ( )
inline

Constructor with no cultures specified, for use with named property syntax.

NUnit.Framework.CultureAttribute.CultureAttribute ( string  cultures)
inline

Constructor taking one or more cultures

Parameters
culturesComma-deliminted list of cultures

Member Function Documentation

bool NUnit.Framework.CultureAttribute.IsCultureSupported ( )
inlineprivate

Tests to determine if the current culture is supported based on the properties of this attribute.

Returns
True, if the current culture is supported

References NUnit.Framework.Internal.CultureDetector.IsCultureSupported().

bool NUnit.Framework.CultureAttribute.IsCultureSupported ( string  culture)
inline

Test to determine if the a particular culture or comma- delimited set of cultures is in use.

Parameters
cultureName of the culture or comma-separated list of culture ids
Returns
True if the culture is in use on the system
bool NUnit.Framework.CultureAttribute.IsCultureSupported ( string[]  cultures)
inline

Test to determine if one of a collection of cultures is being used currently.

Parameters
cultures
Returns

Member Data Documentation

CultureDetector NUnit.Framework.CultureAttribute.cultureDetector = new CultureDetector()
private
CultureInfo NUnit.Framework.CultureAttribute.currentCulture = CultureInfo.CurrentCulture
private

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