Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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);
        }