Exemplo n.º 1
0
        public void AppInteractFunctionality()
        {
            AppInteract app = new AppInteract(@"DummyTestExe.exe");
            Assert.IsFalse(app.Start());
            Process proc = app.Process;
            Assert.IsNotNull(proc, "Null process");
            Assert.IsNotNull(proc.MainWindowHandle, "Null window handle");

            app.Exit();
            Assert.IsNull(app.Process, "Non-null process");
        }
Exemplo n.º 2
0
        public void AppInteractFunctionality()
        {
            AppInteract app = new AppInteract(@"DummyTestExe.exe");

            Assert.IsFalse(app.Start());
            Process proc = app.Process;

            Assert.IsNotNull(proc, "Null process");
            Assert.IsNotNull(proc.MainWindowHandle, "Null window handle");

            app.Exit();
            Assert.IsNull(app.Process, "Non-null process");
        }
Exemplo n.º 3
0
        /// <summary>
        /// Correct way to deal with FixtureTearDown for class that derive from BaseTest.
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (m_app != null)
                {
                    m_app.Exit();
                }
            }
            m_app       = null;
            m_StatusBar = null;

            base.Dispose(disposing);
        }