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:
Tig
2024-01-16 10:32:51 -07:00
committed by GitHub
parent 56943f17d2
commit 1df8ae15bb
18 changed files with 285 additions and 249 deletions

View File

@@ -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);
}
}
}