浏览代码

Fixed nullable warnings 6

Tig 1 年之前
父节点
当前提交
ff47aa29b9
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      UnitTests/Views/ToplevelTests.cs

+ 3 - 3
UnitTests/Views/ToplevelTests.cs

@@ -1049,12 +1049,12 @@ public partial class ToplevelTests (ITestOutputHelper output)
         Assert.False (subTop.IsLoaded);
         Assert.Equal (new (0, 0, 20, 10), view.Frame);
 
-        view.LayoutStarted += view_LayoutStarted;
+        view.LayoutStarted += ViewLayoutStarted;
 
-        void view_LayoutStarted (object sender, LayoutEventArgs e)
+        void ViewLayoutStarted (object sender, LayoutEventArgs e)
         {
             Assert.Equal (new (0, 0, 20, 10), view._needsDisplayRect);
-            view.LayoutStarted -= view_LayoutStarted;
+            view.LayoutStarted -= ViewLayoutStarted;
         }
 
         Application.Begin (top);