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