浏览代码

moar unit tests

Tig 10 月之前
父节点
当前提交
0444293c5b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      UnitTests/Views/ToplevelTests.cs

+ 6 - 0
UnitTests/Views/ToplevelTests.cs

@@ -1358,6 +1358,12 @@ public partial class ToplevelTests (ITestOutputHelper output)
     [AutoInitShutdown (configLocation: ConfigurationManager.ConfigLocations.None)]
     [AutoInitShutdown (configLocation: ConfigurationManager.ConfigLocations.None)]
     public void Draw_A_Top_Subview_On_A_Window ()
     public void Draw_A_Top_Subview_On_A_Window ()
     {
     {
+        // Override CM
+        Dialog.DefaultButtonAlignment = Alignment.Center;
+        Dialog.DefaultBorderStyle = LineStyle.Single;
+        Dialog.DefaultShadow = ShadowStyle.None;
+        Button.DefaultShadow = ShadowStyle.None;
+
         Toplevel top = new ();
         Toplevel top = new ();
         var win = new Window ();
         var win = new Window ();
         top.Add (win);
         top.Add (win);