mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixed CheckBox issue
This commit is contained in:
@@ -188,25 +188,21 @@ public class AllViewsTests (ITestOutputHelper output) : TestsAllViews
|
||||
view.HotKey = Key.T;
|
||||
}
|
||||
|
||||
var selectingCount = 0;
|
||||
view.Selecting += (s, e) => selectingCount++;
|
||||
|
||||
var acceptedCount = 0;
|
||||
view.Accepting += (s, e) =>
|
||||
{
|
||||
acceptedCount++;
|
||||
};
|
||||
|
||||
var hotkeyHandledCount = 0;
|
||||
var handlingHotKeyCount = 0;
|
||||
view.HandlingHotKey += (s, e) =>
|
||||
{
|
||||
hotkeyHandledCount++;
|
||||
handlingHotKeyCount++;
|
||||
};
|
||||
|
||||
if (view.InvokeCommand (Command.HotKey) == true)
|
||||
{
|
||||
Assert.Equal (1, hotkeyHandledCount);
|
||||
Assert.Equal (0, selectingCount);
|
||||
Assert.Equal (1, handlingHotKeyCount);
|
||||
Assert.Equal (0, acceptedCount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user