Browse Source

Fix failing test.

pull/227/head
Steven Kirk 11 years ago
parent
commit
f68f24f24a
  1. 5
      tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs

5
tests/Perspex.Controls.UnitTests/Utils/HotKeyManagerTests.cs

@ -21,8 +21,11 @@ namespace Perspex.Controls.UnitTests.Utils
using (PerspexLocator.EnterScope())
{
var windowImpl = new Mock<IWindowImpl>();
var styler = new Mock<Styler>();
PerspexLocator.CurrentMutable
.Bind<IWindowImpl>().ToConstant(windowImpl.Object);
.Bind<IWindowImpl>().ToConstant(windowImpl.Object)
.Bind<IStyler>().ToConstant(styler.Object);
var gesture1 = new KeyGesture {Key = Key.A, Modifiers = InputModifiers.Control};
var gesture2 = new KeyGesture {Key = Key.B, Modifiers = InputModifiers.Control};

Loading…
Cancel
Save