One of the projects I'm working on will sometimes have deployment issues due to failing unit tests. The most common issue that causes this to happen is date formatting not matching.
Usually the problem is that some places will call the ToString method on a date, which then that string value is validated somewhere. But with different regional settings we can end up with different date strings. Some of which cause the unit tests to fail.
What I would like to try do is mark some tests as regional settings sensitive. And if a test is marked as regional settings sensitive I would like to try running all the same tests that would be run, but with different regional settings to make sure that no changes to those regional settings would cause issues.
I know I can probably add this to the tests myself manually, but this happens often enough that I want to investigate a broader solution.
Any advice on how to implement such a change would be greatly appreciated.