Fix ColorPickerTests.

This commit is contained in:
BDisp
2024-03-23 20:51:33 +00:00
parent 6a6fd3b480
commit 408ae43e74

View File

@@ -48,8 +48,9 @@ public class ColorPickerTests
{
var colorPicker = new ColorPicker { X = 0, Y = 0, Height = 4, Width = 32 };
Assert.Equal (ColorName.Black, colorPicker.SelectedColor);
Application.Top.Add (colorPicker);
Application.Begin (Application.Top);
var top = new Toplevel ();
top.Add (colorPicker);
Application.Begin (top);
Assert.False (colorPicker.OnMouseEvent (new MouseEvent ()));