Fix Interop/SizeConst/SizeConstTest to successfully run in all locales. (#20268)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Tue, 19 Mar 2019 01:01:29 +0000 (18:01 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 01:01:29 +0000 (18:01 -0700)
commit2fcf278b141e61ef3ae4c9afa9e3dc1ea9954bb0
tree25ab3f817ffe0148e3662ae57cbf75a293e0a70f
parent82f60c93d6677a6245446e72624723ee70254e4f
Fix Interop/SizeConst/SizeConstTest to successfully run in all locales. (#20268)

This test initially would fail when run on a multibyte character set with characters for the original value of `s.arr` such as zh-CH. We cannot change the marshaler since there is not a good way to determine how many bytes/character we need at type-load-time (when the size of the native type is determined).

This change allows us to accurately run this test on Windows machines with multi-byte character sets.

Fixes #7793.
tests/src/Interop/SizeConst/SizeConstTest.cs