mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixed stuff
This commit is contained in:
@@ -22,20 +22,20 @@ public class ShortcutTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData ("", "", KeyCode.Null, 0)]
|
||||
[InlineData ("", "", KeyCode.Null, 2)]
|
||||
[InlineData ("C", "", KeyCode.Null, 3)]
|
||||
[InlineData ("", "H", KeyCode.Null, 3)]
|
||||
[InlineData ("", "", KeyCode.K, 3)]
|
||||
[InlineData ("", "H", KeyCode.Null, 5)]
|
||||
[InlineData ("", "", KeyCode.K, 5)]
|
||||
[InlineData ("C", "", KeyCode.K, 6)]
|
||||
[InlineData ("C", "H", KeyCode.Null, 6)]
|
||||
[InlineData ("", "H", KeyCode.K, 6)]
|
||||
[InlineData ("", "H", KeyCode.K, 8)]
|
||||
[InlineData ("C", "H", KeyCode.K, 9)]
|
||||
public void NaturalSize (string command, string help, Key key, int expectedWidth)
|
||||
{
|
||||
Shortcut shortcut = new Shortcut ()
|
||||
{
|
||||
Title = command,
|
||||
Text = help,
|
||||
HelpText = help,
|
||||
Key = key,
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ public class ShortcutTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CommandView_Text_And_Title_Are_The_Same ()
|
||||
public void CommandView_Text_And_Title_Track ()
|
||||
{
|
||||
Shortcut shortcut = new Shortcut ()
|
||||
{
|
||||
@@ -88,12 +88,6 @@ public class ShortcutTests
|
||||
|
||||
Assert.Equal (shortcut.Title, shortcut.CommandView.Text);
|
||||
|
||||
shortcut = new Shortcut ()
|
||||
{
|
||||
};
|
||||
shortcut.CommandView.Text = "T";
|
||||
Assert.Equal (shortcut.Title, shortcut.CommandView.Text);
|
||||
|
||||
shortcut = new Shortcut ()
|
||||
{
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user