public void OnAttached_WhenCalled_SubscribesToMouseLeftButtonUpEvents() { //Arrange var classUnderTest = new ShortcutManagerBehavior(); var mock = Mock.Create<Panel>(Behavior.CallOriginal); Mock.ArrangeSet(() => mock.KeyDown += null).IgnoreArguments().OccursOnce(); //Act classUnderTest.Attach(mock); //Assert Mock.AssertAll(mock); }
public void PropertiesTest() { var behavior = new ShortcutManagerBehavior(); TestsHelper.TestPublicDeclaredPropertiesGetSet(behavior); }