From: Maryam Ariyan Date: Thu, 24 Jan 2019 13:19:49 +0000 (-0800) Subject: Test fix for Nano: WindowAndCursorProps/Title_Get_Windows_NoNulls (dotnet/corefx... X-Git-Tag: submit/tizen/20210909.063632~11031^2~2623 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc9be71e95572b5b77cdd8276ee3f396a76f2ab1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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 --- 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