Carna

Culture Attribute

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()
    {
        ...
    }
}