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.Internal.CultureDetector Class Reference

CultureDetector is a helper class used by NUnit to determine whether a test should be run based on the current culture. More...

Public Member Functions

 CultureDetector ()
 Default constructor uses the current culture. More...
 
 CultureDetector (string culture)
 Construct a CultureDetector for a particular culture for testing. More...
 
bool IsCultureSupported (string[] cultures)
 Test to determine if one of a collection of cultures is being used currently. More...
 
bool IsCultureSupported (CultureAttribute cultureAttribute)
 Tests to determine if the current culture is supported based on a culture attribute. More...
 
bool IsCultureSupported (string culture)
 Test to determine if the a particular culture or comma- delimited set of cultures is in use. More...
 

Properties

string Reason [get]
 Return the last failure reason. Results are not defined if called before IsSupported( Attribute ) is called. More...
 

Private Attributes

CultureInfo currentCulture
 
string reason = string.Empty
 

Detailed Description

CultureDetector is a helper class used by NUnit to determine whether a test should be run based on the current culture.

Constructor & Destructor Documentation

NUnit.Framework.Internal.CultureDetector.CultureDetector ( )
inline

Default constructor uses the current culture.

NUnit.Framework.Internal.CultureDetector.CultureDetector ( string  culture)
inline

Construct a CultureDetector for a particular culture for testing.

Parameters
cultureThe culture to be used

Member Function Documentation

bool NUnit.Framework.Internal.CultureDetector.IsCultureSupported ( string[]  cultures)
inline

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

Parameters
cultures
Returns

Referenced by NUnit.Framework.CultureAttribute.IsCultureSupported().

bool NUnit.Framework.Internal.CultureDetector.IsCultureSupported ( CultureAttribute  cultureAttribute)
inline

Tests to determine if the current culture is supported based on a culture attribute.

Parameters
cultureAttributeThe attribute to examine
Returns

References NUnit.Framework.IncludeExcludeAttribute.Exclude, and NUnit.Framework.IncludeExcludeAttribute.Include.

bool NUnit.Framework.Internal.CultureDetector.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

Member Data Documentation

CultureInfo NUnit.Framework.Internal.CultureDetector.currentCulture
private
string NUnit.Framework.Internal.CultureDetector.reason = string.Empty
private

Property Documentation

string NUnit.Framework.Internal.CultureDetector.Reason
get

Return the last failure reason. Results are not defined if called before IsSupported( Attribute ) is called.


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