From 6de73cc1b7a05c9a7904554a9338a850b2b40214 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 29 Jan 2015 12:19:33 +0100 Subject: [PATCH] Fixed test: Window now autosizes. --- Perspex.Layout.UnitTests/FullLayoutTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Perspex.Layout.UnitTests/FullLayoutTests.cs b/Perspex.Layout.UnitTests/FullLayoutTests.cs index e460d1fc3a..97de989dbe 100644 --- a/Perspex.Layout.UnitTests/FullLayoutTests.cs +++ b/Perspex.Layout.UnitTests/FullLayoutTests.cs @@ -75,6 +75,8 @@ namespace Perspex.Layout.UnitTests var window = new Window() { + Width = 800, + Height = 600, Content = (scrollViewer = new ScrollViewer { Width = 200, @@ -137,7 +139,6 @@ namespace Perspex.Layout.UnitTests var windowImpl = new Mock(); globalStyles.Setup(x => x.Styles).Returns(theme); - windowImpl.Setup(x => x.ClientSize).Returns(new Size(800, 600)); l.RegisterConstant(new Mock().Object, typeof(IInputManager)); l.RegisterConstant(globalStyles.Object, typeof(IGlobalStyles));