瀏覽代碼

Fix AutocompleteTests.

BDisp 1 年之前
父節點
當前提交
d209a171fe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      UnitTests/Text/AutocompleteTests.cs

+ 2 - 2
UnitTests/Text/AutocompleteTests.cs

@@ -20,7 +20,7 @@ public class AutocompleteTests
                                 .Select (s => s.Value)
                                 .Select (s => s.Value)
                                 .Distinct ()
                                 .Distinct ()
                                 .ToList ();
                                 .ToList ();
-        Toplevel top = Application.Top;
+        Toplevel top = new ();
         top.Add (tv);
         top.Add (tv);
         Application.Begin (top);
         Application.Begin (top);
 
 
@@ -152,7 +152,7 @@ This an long line and against TextView.",
     public void KeyBindings_Command ()
     public void KeyBindings_Command ()
     {
     {
         var tv = new TextView { Width = 10, Height = 2, Text = " Fortunately super feature." };
         var tv = new TextView { Width = 10, Height = 2, Text = " Fortunately super feature." };
-        Toplevel top = Application.Top;
+        Toplevel top = new ();
         top.Add (tv);
         top.Add (tv);
         Application.Begin (top);
         Application.Begin (top);