예제 #1
0
        public void ShowConfigurationTest()
        {
            UIThreadInvoker.Invoke(new Action(() =>
            {
                var dialogBoxPurger = new DialogBoxPurger(NativeMethods.IDOK);

                try
                {
                    dialogBoxPurger.Start();

                    var configurationCommand = new CommandID(PackageGuids.GuidCodeMaidCommandOptions, PackageIds.CmdIDCodeMaidOptions);
                    TestUtils.ExecuteCommand(configurationCommand);
                }
                finally
                {
                    dialogBoxPurger.WaitForDialogThreadToTerminate();
                }
            }));
        }
예제 #2
0
        public void ShowAboutTest()
        {
            UIThreadInvoker.Invoke(new Action(() =>
            {
                var dialogBoxPurger = new DialogBoxPurger(NativeMethods.IDOK);

                try
                {
                    dialogBoxPurger.Start();

                    var aboutCommand = new CommandID(GuidList.GuidCodeMaidCommandAbout, (int)PkgCmdIDList.CmdIDCodeMaidAbout);
                    TestUtils.ExecuteCommand(aboutCommand);
                }
                finally
                {
                    dialogBoxPurger.WaitForDialogThreadToTerminate();
                }
            }));
        }