public void InvisibleViewModelStealsFocus() { var viewModel = Mock.Of <IViewModel>(x => x.IsVisible == false); var command = new TrayIconCommand(viewModel); command.Execute(null); Mock.Get(viewModel).Verify(x => x.DoStealFocus()); }
public void InvisibleViewModelSetsVisible() { var viewModel = Mock.Of <IViewModel>(x => x.IsVisible == false); var command = new TrayIconCommand(viewModel); command.Execute(null); Mock.Get(viewModel).VerifySet(x => x.IsVisible = true); }