Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d1521ea

Browse files
ViktorHoferstephentoub
authored andcommitted
Disable console title workaround for >=RS4 (#25532)
* Disable console title workaround for >=RS4 * Change to expect test throwing on RS2
1 parent 93764c0 commit d1521ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Console/tests/WindowAndCursorProps.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public static void Title_Set_Windows(int lengthOfTitle)
155155
string newTitle = new string('a', int.Parse(lengthOfTitleString));
156156
Console.Title = newTitle;
157157

158-
if (newTitle.Length > 513 && PlatformDetection.IsWindows10Version1703OrGreater)
158+
if (newTitle.Length > 513 && PlatformDetection.IsWindows10Version1703OrGreater && !PlatformDetection.IsWindows10Version1709OrGreater)
159159
{
160160
// RS2 has a bug when getting the window title when the title length is longer than 513 character
161161
Assert.Throws<IOException>(() => Console.Title);

0 commit comments

Comments
 (0)