From cc9be71e95572b5b77cdd8276ee3f396a76f2ab1 Mon Sep 17 00:00:00 2001 From: Maryam Ariyan Date: Thu, 24 Jan 2019 05:19:49 -0800 Subject: [PATCH] Test fix for Nano: WindowAndCursorProps/Title_Get_Windows_NoNulls (dotnet/corefx#34755) * Modifying assertion code for Nano on WindowAndCursorProps/Title_Get_Windows_NoNulls Fixes: dotnet/corefx#34717 * Change Contains to Equal Commit migrated from https://github.com/dotnet/corefx/commit/0c437d886f194d34caf20c3078e27c6ce26d4119 --- src/libraries/System.Console/tests/WindowAndCursorProps.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/libraries/System.Console/tests/WindowAndCursorProps.cs b/src/libraries/System.Console/tests/WindowAndCursorProps.cs index fab7e15..3fe21a5 100644 --- a/src/libraries/System.Console/tests/WindowAndCursorProps.cs +++ b/src/libraries/System.Console/tests/WindowAndCursorProps.cs @@ -235,16 +235,7 @@ public class WindowAndCursorProps : RemoteExecutorTestBase { string title = Console.Title; string trimmedTitle = title.TrimEnd('\0'); - - if (PlatformDetection.IsWindowsNanoServer) - { - // Nano server titles are currently broken - Assert.NotEqual(trimmedTitle, title); - } - else - { - Assert.Equal(trimmedTitle, title); - } + Assert.Equal(title, trimmedTitle); } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // Nano currently ignores set title -- 2.7.4