public void ShouldHookUpClickCommandBehaviorWhenSettingProperty() { var clickableObject = new MockClickableObject(); var command = new MockCommand(); Click.SetCommand(clickableObject, command); Assert.IsFalse(command.ExecuteCalled); clickableObject.RaiseClick(); Assert.IsTrue(command.ExecuteCalled); Assert.AreSame(command, Click.GetCommand(clickableObject)); }