mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes #3186. HotKeys must be explicitly set (Makes TextFormatter.FindHotKey firstUpperCase default to false) (#3187)
* Removed resharper settings from editorconfig * Fixed FileDialog, Button, and Checkbox * Fixed RadioGroup * code cleanup * Fixed Unicode Scenario * Fixed nonBMP bug in DrawHotString * Fixed nonBMP bug in DrawHotString * Fixed AllViewsTester and Buttons * Fixed Dialogs & MessageBoxes * API docs
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System.Text;
|
||||
using System;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
using Microsoft.VisualStudio.TestPlatform.Utilities;
|
||||
|
||||
namespace Terminal.Gui.ViewsTests;
|
||||
|
||||
@@ -382,6 +380,18 @@ t ", _output);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
|
||||
}
|
||||
|
||||
[Theory, SetupFakeDriver]
|
||||
[InlineData ("𝔽𝕆𝕆𝔹𝔸R")]
|
||||
[InlineData ("a𐐀b")]
|
||||
void DrawHotString_NonBmp (string expected)
|
||||
{
|
||||
var view = new View () { Width = 10, Height = 1 };
|
||||
view.DrawHotString (expected, Attribute.Default, Attribute.Default);
|
||||
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
|
||||
|
||||
}
|
||||
|
||||
[Fact, AutoInitShutdown]
|
||||
public void Draw_Minimum_Full_Border_With_Empty_Bounds ()
|
||||
{
|
||||
@@ -512,4 +522,4 @@ t ", _output);
|
||||
│Test│
|
||||
└────┘", _output);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user