Fix trimmability of various System.Runtime tests (#70329)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 7 Jun 2022 17:36:40 +0000 (02:36 +0900)
committerGitHub <noreply@github.com>
Tue, 7 Jun 2022 17:36:40 +0000 (10:36 -0700)
commitc27d571a2443b99507df6fe39025d9d49cb8ba2c
treef97cb4502e2ada86cb7991d18be092f5846ae23b
parent6a3368b5ee213963b170b9a761e3976f5c18c2b6
Fix trimmability of various System.Runtime tests (#70329)

The reflection patterns couldn't be statically analyzed.

Needed to unblock #70201. NativeAOT trims by default and CoreLib is marked trimmable.
src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs
src/libraries/System.Runtime/tests/System/Text/ASCIIUtilityTests.cs
src/libraries/System.Runtime/tests/System/Text/Latin1UtilityTests.cs
src/libraries/System.Runtime/tests/System/Text/Unicode/Utf16UtilityTests.ValidateChars.cs
src/libraries/System.Runtime/tests/System/Text/Unicode/Utf8UtilityTests.ValidateBytes.cs