Fixed ColorPicker test failure

This commit is contained in:
Tigger Kindel
2023-10-10 10:19:47 -06:00
committed by Tig
parent 4b51a912be
commit 4e89fae8c6
2 changed files with 18 additions and 29 deletions

View File

@@ -51,8 +51,15 @@ namespace Terminal.Gui.ViewsTests {
[AutoInitShutdown]
public void MouseEvents ()
{
var colorPicker = new ColorPicker ();
var colorPicker = new ColorPicker () {
X = 0,
Y = 0,
Height = 4,
Width = 32
};
Assert.Equal (ColorNames.Black, colorPicker.SelectedColor);
Application.Top.Add (colorPicker);
Application.Begin (Application.Top);
Assert.False (colorPicker.MouseEvent (new MouseEvent ()));