public void UpdateUiControls() { using (var applicationInstance = new ApplicationInstance()) { applicationInstance.Launch(Settings.Default.TestApplicationLocation); applicationInstance.RunMethod(() => UpdateUiControlsImpl()); } }
public void AnonymousMethodsWithAsyncAreAbleToBeUsed() { using (var applicationInstance = new ApplicationInstance()) { applicationInstance.Launch(Settings.Default.TestApplicationLocation); applicationInstance.Run(async () => { await Task.Delay(5000); }); } }
public void AnonymousMethodsAreAbleToBeUsed() { using (var applicationInstance = new ApplicationInstance()) { applicationInstance.Launch(Settings.Default.TestApplicationLocation); applicationInstance.Run(() => { Thread.Sleep(5000); }); } }
public void ApplicationCanBeLaunchedAndAttachedTo() { Process process; using (var applicationInstance = new ApplicationInstance()) { applicationInstance.Launch(Settings.Default.TestApplicationLocation); process = applicationInstance.Process; Assert.IsNotNull(applicationInstance.Process); } Assert.IsTrue(process.HasExited); }
public void ApplicationCanBeLaunchedAndAttachedTo() { Process process; using (var applicationInstance = new ApplicationInstance()) { applicationInstance.Launch(@"PATHTOAPPLICATION"); process = applicationInstance.Process; Assert.IsNotNull(applicationInstance.Process); applicationInstance.Run(() => { }); } Assert.IsTrue(process.HasExited); }