C# How can I force Localization Culture to en-US for tests project

后端 未结 6 1103
清酒与你
清酒与你 2021-02-02 07:33

How to specify concrente Localization Culture for tests project in C# in VS2008? I\'m building Asp .Net MVC app that has nonstandard culture specified in web.config but how to s

6条回答
  •  Happy的楠姐
    2021-02-02 07:35

    For nUnit 3, you can use the attribute [SetUICulture("en-us")]. This will force the culture for this single test.

提交回复
热议问题