From 1f28cb41f8a13b6aaebafec473442ca91cc5c72f Mon Sep 17 00:00:00 2001 From: BDisp Date: Sat, 23 Mar 2024 19:50:31 +0000 Subject: [PATCH] Fix EscSeqUtilsTests. --- UnitTests/Input/EscSeqUtilsTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UnitTests/Input/EscSeqUtilsTests.cs b/UnitTests/Input/EscSeqUtilsTests.cs index c8838b750..c91518c2c 100644 --- a/UnitTests/Input/EscSeqUtilsTests.cs +++ b/UnitTests/Input/EscSeqUtilsTests.cs @@ -695,8 +695,9 @@ public class EscSeqUtilsTests Assert.False (_isReq); var view = new View { Width = Dim.Fill (), Height = Dim.Fill (), WantContinuousButtonPressed = true }; - Application.Top.Add (view); - Application.Begin (Application.Top); + var top = new Toplevel (); + top.Add (view); + Application.Begin (top); Application.OnMouseEvent ( new MouseEventEventArgs (