-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PROTOTYPE] Implement TestCultureAttribute #4055
base: main
Are you sure you want to change the base?
Conversation
_previousUICulture = CultureInfo.CurrentUICulture; | ||
|
||
var newCulture = new CultureInfo(cultureName); | ||
// TODO: Should we set both? Should we have different attribute? Same attribute with two arguments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be discussed first.
// TestMethodInfo isn't accessible here :/ | ||
// Can we add TestCultureName to the *public* interface? | ||
// Or should we introduce an internal interface ITestMethod2 : ITestMethod :/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @Evangelink
|
||
var newCulture = new CultureInfo(cultureName); | ||
// TODO: Should we set both? Should we have different attribute? Same attribute with two arguments? | ||
CultureInfo.CurrentCulture = newCulture; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important consideration: Validate if that approach is going to work well for tests running in parallel
Fixes #579