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};