Use RemoveInvoke in several StringTests (dotnet/corefx#37417)
authorStephen Toub <stoub@microsoft.com>
Fri, 3 May 2019 20:23:17 +0000 (16:23 -0400)
committerViktor Hofer <viktor.hofer@microsoft.com>
Fri, 3 May 2019 20:23:16 +0000 (22:23 +0200)
commit4fe32c8353a9be11c2e0a8f82e0aaa0a9150dbd3
tree1bb6f8066f7db864791ed726b779b61407a721b9
parent10c8bfcdf9ed01e9d4b33c096611c9d47fda9667
Use RemoveInvoke in several StringTests (dotnet/corefx#37417)

Every test that modifies CurrentCulture should be run out-of-process (to avoid one test interfering with another, either due to leaving a thread configured inappropriately or due to platforms where changing culture actually has global impact).  A few snuck in to StringTests that weren't, and we've seen sporadic failures as a result.

Commit migrated from https://github.com/dotnet/corefx/commit/d301a1d1485764e57822c91b9727018c02765cd8
src/libraries/Common/tests/Tests/System/StringTests.cs