Skip to content

Culture Attribute

Averrunci edited this page Jan 28, 2018 · 1 revision

This attribute is used to set the current culture during running a fixture.

The available property is as follows.

Property Description
Culture Specifies a culture during running a fixture.

For example:

[Culture("fr-FR")]
[Specification("LoginAuthentication specification")]
class LoginAuthenticationSpec
{
}
[Specification("LoginAuthentication specification")]
class LoginAuthenticationSpec
{
    [Culture("fr-FR")]
    [Example("Login authentication is failed")]
    void Ex01()
    {
    }
}
Clone this wiki locally