mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 12:49:35 -10:00
Remove random data from System.Text.Encoding tests
Commit migrated from https://github.com/dotnet/corefx/commit/c8dd21919875419202bbf8277b776580c783b6aa
This commit is contained in:
1 parent
0b028ee362
commit
f15da2ff38
12 files changed
+45
-106
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ namespace System.Text.Tests
|
||||
[Fact]
|
||||
public void GetEncoder()
|
||||
{
|
||||
char[] chars = EncodingHelpers.GetRandomString(10).ToCharArray();
|
||||
char[] chars = "abc\u1234\uD800\uDC00defg".ToCharArray();
|
||||
byte[] bytes = new UnicodeEncoding().GetBytes(chars);
|
||||
byte[] desBytes = new byte[20];
|
||||
int buffer;
|
||||
|
||||
Reference in new issue
Block a user