From f68f24f24a6c98c3cff8fc5903731eb99fb3441c Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 29 Sep 2015 18:04:15 +0200 Subject: [PATCH] Fix failing test. --- tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs b/tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs index c078b7b47e..bbc1e78166 100644 --- a/tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs +++ b/tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs @@ -21,8 +21,11 @@ namespace Perspex.Controls.UnitTests.Utils using (PerspexLocator.EnterScope()) { var windowImpl = new Mock(); + var styler = new Mock(); + PerspexLocator.CurrentMutable - .Bind().ToConstant(windowImpl.Object); + .Bind().ToConstant(windowImpl.Object) + .Bind().ToConstant(styler.Object); var gesture1 = new KeyGesture {Key = Key.A, Modifiers = InputModifiers.Control}; var gesture2 = new KeyGesture {Key = Key.B, Modifiers = InputModifiers.Control};