mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Merge branch 'develop' into fix_2109_menubar_spacing
This commit is contained in:
@@ -608,5 +608,29 @@ namespace Terminal.Gui.ConsoleDrivers {
|
||||
Application.Run (win);
|
||||
Application.Shutdown ();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0x0000001F, 0x241F)]
|
||||
[InlineData(0x0000007F, 0x247F)]
|
||||
[InlineData(0x0000009F, 0x249F)]
|
||||
[InlineData(0x0001001A, 0x241A)]
|
||||
public void MakePrintable_Converts_Control_Chars_To_Proper_Unicode (uint code, uint expected)
|
||||
{
|
||||
var actual = ConsoleDriver.MakePrintable(code);
|
||||
|
||||
Assert.Equal (expected, actual.Value);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0x20)]
|
||||
[InlineData(0x7E)]
|
||||
[InlineData(0xA0)]
|
||||
[InlineData(0x010020)]
|
||||
public void MakePrintable_Does_Not_Convert_Ansi_Chars_To_Unicode (uint code)
|
||||
{
|
||||
var actual = ConsoleDriver.MakePrintable(code);
|
||||
|
||||
Assert.Equal (code, actual.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user