[wasm] Fix invariant globalization test (#56121)
authorAnkit Jain <radical@gmail.com>
Thu, 22 Jul 2021 16:37:28 +0000 (12:37 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Jul 2021 16:37:28 +0000 (12:37 -0400)
commit6d15a020712228683ead99a3d62eee1d63d19738
tree65e45179000a559b20c7416e86a659766a348ea5
parentf28702c47c6753dbaf312128ae002a69499e8364
[wasm] Fix invariant globalization test (#56121)

The following commit changed the behavior to throw `CultureNotFoundException`
when creating cultures in invariant mode.

```
commit 04dac7b0fede29d44f896c5fd793754f83974175
Author: Tarek Mahmoud Sayed <tarekms@microsoft.com>
Date:   Thu Jul 1 11:55:05 2021 -0700

    Allow restricting cultures creation with any arbitrary names in Globalization Invariant Mode (#54247)
```

This commit updates the corresponding test in `Wasm.Build.Tests` to
handle that explicitly.

Fixes https://github.com/dotnet/runtime/issues/55838
src/tests/BuildWasmApps/Wasm.Build.Tests/InvariantGlobalizationTests.cs