public void ButtonCommandsExecuteWhenClicked() { var executed = false; var command = Container.Provide<AlfredCommand>(); command.ExecuteAction = () => { executed = true; }; var button = new ButtonWidget(BuildWidgetParams()) { ClickCommand = command }; button.Click(); Assert.IsTrue(executed, "The button was invoked but the executed flag was not set"); }