From 51cd9f7601c9898701c8078cf25f2421a76c1154 Mon Sep 17 00:00:00 2001 From: Cubey2019 Date: Fri, 14 Jul 2017 15:31:43 +0100 Subject: [PATCH] Fix unit test failure under AppVeyor by assigning an initial TitleBar instead of expecting the template to provide one. --- Fluent.Ribbon.Tests/Controls/RibbonTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Fluent.Ribbon.Tests/Controls/RibbonTests.cs b/Fluent.Ribbon.Tests/Controls/RibbonTests.cs index a38cb4fb6..d1c592c00 100644 --- a/Fluent.Ribbon.Tests/Controls/RibbonTests.cs +++ b/Fluent.Ribbon.Tests/Controls/RibbonTests.cs @@ -162,9 +162,8 @@ public void TitleBar_properties_synchronised_with_ribbon() { ribbon.ApplyTemplate(); Assert.IsNotNull(ribbon.QuickAccessToolBar); - Assert.IsNotNull(ribbon.TitleBar); - var oldTitleBar = ribbon.TitleBar; + var oldTitleBar = ribbon.TitleBar = new RibbonTitleBar(); Assert.AreEqual(1, oldTitleBar.Items.Count); Assert.AreSame(ribbon.QuickAccessToolBar, oldTitleBar.QuickAccessToolBar);