Example #1
0
        public void TestLaunchWinFormDemoApp()
        {
            var demoApp = new ApplicationUnderTest("", "TestControlTests.exe");

            demoApp.ShowDesktop();
            demoApp.RunOnce();
            if (demoApp.WaitForCaptionIfExists("***Demo Form-aaaaa", 2))
            {
                Assert.Fail("this should not pass");
            }

            if (demoApp.WaitForCaptionIfExists("Demo Form", 2))
            {
                Assert.IsTrue(true);
            }
            else
            {
                Assert.Fail("unable to get demoapp window caption");
            }

            demoApp.Terminate();
        }