Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Youssef1313
Copy link
Member

Fixes #579

_previousUICulture = CultureInfo.CurrentUICulture;

var newCulture = new CultureInfo(cultureName);
// TODO: Should we set both? Should we have different attribute? Same attribute with two arguments?
Copy link
Member Author

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.

Comment on lines +72 to +74
// TestMethodInfo isn't accessible here :/
// Can we add TestCultureName to the *public* interface?
// Or should we introduce an internal interface ITestMethod2 : ITestMethod :/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


var newCulture = new CultureInfo(cultureName);
// TODO: Should we set both? Should we have different attribute? Same attribute with two arguments?
CultureInfo.CurrentCulture = newCulture;
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a TestCulture attribute to set the culture of the test
1 participant