From 9cc2d777addb1d46593d87e25baf4056b6e6658a Mon Sep 17 00:00:00 2001 From: Kermalis <29823718+Kermalis@users.noreply.github.com> Date: Tue, 17 Sep 2019 23:56:47 -0400 Subject: [PATCH] Update WrapPanelTests.cs --- .../WrapPanelTests.cs | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/Avalonia.Controls.UnitTests/WrapPanelTests.cs b/tests/Avalonia.Controls.UnitTests/WrapPanelTests.cs index e0fa02814a..149f723458 100644 --- a/tests/Avalonia.Controls.UnitTests/WrapPanelTests.cs +++ b/tests/Avalonia.Controls.UnitTests/WrapPanelTests.cs @@ -97,24 +97,25 @@ namespace Avalonia.Controls.UnitTests [Fact] public void Applies_ItemWidth_And_ItemHeight_Properties() { - var target = new WrapPanel - { - Width = 50, - ItemWidth = 20, - ItemHeight = 15, - Children = - { - new Border(), - new Border { Width = 50, Height = 50 }, - } - }; + var target = new WrapPanel() + { + Orientation = Orientation.Horizontal, + Width = 50, + ItemWidth = 20, + ItemHeight = 15, + Children = + { + new Border(), + new Border { Width = 50, Height = 50 }, + } + }; target.Measure(Size.Infinity); target.Arrange(new Rect(target.DesiredSize)); Assert.Equal(new Size(50, 15), target.Bounds.Size); Assert.Equal(new Rect(0, 0, 20, 15), target.Children[0].Bounds); - Assert.Equal(new Rect(20, 15, 20, 15), target.Children[1].Bounds); + Assert.Equal(new Rect(20, 0, 20, 15), target.Children[1].Bounds); } } }