-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
TestData.cs
30 lines (25 loc) · 1.38 KB
/
TestData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Text;
public static class TestData
{
public const char InvalidChar = (char)0x2216;
public const char UnmappableChar = '\u706B';
public const char ValidChar = 'c';
public static readonly string InvalidString = new string(new char[]
{
(char)0x2216,
(char)0x2044,
(char)0x2215,
(char)0x0589,
(char)0x2236
});
public static readonly string UnmappableString = new string(new char[] { '\u4E40', '\u2126', '\u706B' });
public static readonly string ValidString = "This is the initial test string.";
public static readonly StringBuilder InvalidStringBuilder = new StringBuilder(InvalidString);
public static readonly StringBuilder UnmappableStringBuilder = new StringBuilder(UnmappableString);
public static readonly StringBuilder ValidStringBuilder = new StringBuilder(ValidString);
public static readonly string[] InvalidStringArray = new string[] { InvalidString, InvalidString, InvalidString };
public static readonly string[] UnmappableStringArray = new string[] { UnmappableString, UnmappableString, UnmappableString };
public static readonly string[] ValidStringArray = new string[] { ValidString, ValidString, ValidString };
}