Browse Source

Fix failing test.

Steven Kirk 8 years ago
parent
commit
2b1d4e555e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/Avalonia.Controls.UnitTests/WindowBaseTests.cs

+ 4 - 1
tests/Avalonia.Controls.UnitTests/WindowBaseTests.cs

@@ -29,6 +29,8 @@ namespace Avalonia.Controls.UnitTests
             {
                 var impl = Mock.Of<IWindowBaseImpl>(x => x.Scaling == 1);
 
+                Mock.Get(impl).Setup(x => x.Resize(It.IsAny<Size>())).Callback(() => { });
+
                 var target = new TestWindowBase(impl)
                 {
                     Template = CreateTemplate(),
@@ -36,7 +38,8 @@ namespace Avalonia.Controls.UnitTests
                     {
                         Width = 321,
                         Height = 432,
-                    }
+                    },
+                    IsVisible = true,
                 };
 
                 LayoutManager.Instance.ExecuteInitialLayoutPass(target);