Skip to content

Commit

Permalink
Fix unit test failure under AppVeyor by assigning an initial TitleBar…
Browse files Browse the repository at this point in the history
… instead of expecting the template to provide one.
  • Loading branch information
Cubey2019 authored and dady8889 committed Aug 4, 2017
1 parent 5e5a3df commit 51cd9f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Fluent.Ribbon.Tests/Controls/RibbonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 51cd9f7

Please sign in to comment.