Exemplo n.º 1
0
        public void Load_registers_action_with_correct_id()
        {
            runtimeLogPackage.Load();

            windowManager.AssertWasCalled(wm => wm.Register(Arg.Is(RuntimeLogPackage.WindowId),
                                                            Arg <Action> .Is.Anything, Arg <Location> .Is.Anything));
        }
Exemplo n.º 2
0
        public void Load_registers_action_with_correct_id()
        {
            package.Load();

            windowManager.AssertWasCalled(wm => wm.Register(Arg.Is(ProjectExplorerPackage.WindowId),
                                                            Arg <GallioAction> .Is.Anything, Arg <Location> .Is.Anything));
        }
        public void ShowAbout_Action_Displays_Dialog()
        {
            var shell   = CreateShellViewModel();
            var aboutVm = new AboutViewModel();

            _viewModelFactory.Expect(x => x.Create <AboutViewModel>()).Return(aboutVm);

            shell.ShowAboutDialog();

            _windowManager.AssertWasCalled(x => x.ShowDialog(Arg.Is(aboutVm), Arg.Is <object>(null)), c => c.Repeat.Once());
        }
Exemplo n.º 4
0
        public void Load_registers_action_with_correct_id()
        {
            filtersPackage.Load();

            windowManager.AssertWasCalled(wm => wm.Register(Arg.Is(FiltersPackage.WindowId), Arg <GallioAction> .Is.Anything));
        }