コード例 #1
0
 public void TestRunNoArguments()
 {
     InstallerEditorExeUtils.RunOptions options = new InstallerEditorExeUtils.RunOptions();
     InstallerEditorExeUtils.RunResult  r       = InstallerEditorExeUtils.Run(options);
     Assert.AreEqual("Installer Editor", r.WindowTitle);
     Assert.AreEqual(0, r.ExitCode);
 }
コード例 #2
0
 public void TestRunHelp()
 {
     InstallerEditorExeUtils.RunOptions options = new InstallerEditorExeUtils.RunOptions();
     options.args = "/?";
     InstallerEditorExeUtils.RunResult r = InstallerEditorExeUtils.Run(options);
     Assert.AreEqual("Installer Editor Help", r.WindowTitle);
     Assert.AreEqual(2, r.ExitCode);
 }
コード例 #3
0
 public void DumpControls()
 {
     InstallerEditorExeUtils.RunOptions options = new InstallerEditorExeUtils.RunOptions();
     using (Process p = InstallerEditorExeUtils.Detach(options))
     {
         Thread.Sleep(2000);
         p.WaitForInputIdle();
         UIAutomation.DumpControl(AutomationElement.FromHandle(p.MainWindowHandle));
         p.CloseMainWindow();
         p.WaitForExit();
     }
 }