public void ExecuteInvokeAction() { var invoked = false; var command = new RelayCommand(obj => invoked = true); command.Execute(); Assert.IsTrue(invoked); }
public void ExecuteOverloadInvokeActionWithParameter() { var invoked = false; var command = new RelayCommand(obj => { Assert.IsNotNull(obj); invoked = true; }); command.Execute(new object()); Assert.IsTrue(invoked); }