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(); } })); }
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(); } })); }