Example #1
0
        public void UpdateUiControls()
        {
            using (var applicationInstance = new ApplicationInstance())
            {
                applicationInstance.Launch(Settings.Default.TestApplicationLocation);

                applicationInstance.RunMethod(() => UpdateUiControlsImpl());
            }
        }
Example #2
0
        public void AnonymousMethodsWithAsyncAreAbleToBeUsed()
        {
            using (var applicationInstance = new ApplicationInstance())
            {
                applicationInstance.Launch(Settings.Default.TestApplicationLocation);

                applicationInstance.Run(async () =>
                    {
                        await Task.Delay(5000);
                    });
            }
        }
Example #3
0
        public void AnonymousMethodsAreAbleToBeUsed()
        {
            using (var applicationInstance = new ApplicationInstance())
            {
                applicationInstance.Launch(Settings.Default.TestApplicationLocation);

                applicationInstance.Run(() =>
                    {
                        Thread.Sleep(5000);
                    });
            }
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }