You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libraries/System.Console/tests/Color.cs
+56-4Lines changed: 56 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,18 @@
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
usingSystem;
5
-
usingSystem.IO;
5
+
usingSystem.Collections.Generic;
6
+
usingSystem.Diagnostics;
7
+
usingSystem.Globalization;
6
8
usingSystem.Linq;
7
-
usingSystem.Runtime.InteropServices;
8
9
usingSystem.Text;
9
-
usingMicrosoft.DotNet.XUnitExtensions;
10
+
usingMicrosoft.DotNet.RemoteExecutor;
10
11
usingXunit;
11
12
12
13
publicclassColor
13
14
{
15
+
privateconstcharEsc=(char)0x1B;
16
+
14
17
[Fact]
15
18
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.MacCatalyst|TestPlatforms.tvOS,"Not supported on Browser, iOS, MacCatalyst, or tvOS.")]
16
19
publicstaticvoidInvalidColors()
@@ -64,9 +67,58 @@ public static void RedirectedOutputDoesNotUseAnsiSequences()
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.MacCatalyst|TestPlatforms.tvOS,"Not supported on Browser, iOS, MacCatalyst, or tvOS.")]
0 commit comments