提交 cc9be71e 编写于 作者: M Maryam Ariyan 提交者: Stephen Toub

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
上级 194fe08d
......@@ -235,16 +235,7 @@ public static void Title_Get_Windows_NoNulls()
{
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册