* 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
{
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