Example #1
0
		public void NonExistentExecutable()
		{
			CheckDisposed();
			AppInteract app = new AppInteract(@"NonExistent.exe");
			Assert.IsNotNull(app);
			Assert.IsFalse(app.Start());
		}
Example #2
0
        public void NonExistentExecutable()
        {
            AppInteract app = new AppInteract(@"NonExistent.exe");

            Assert.IsNotNull(app);
            Assert.IsFalse(app.Start());
        }
Example #3
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            m_app = TestApp;
            m_app.Start();
            ActivateAllMenuItems(m_app.MainAccessibilityHelper);
        }
Example #4
0
		public override void FixtureSetup()
		{
			CheckDisposed();
			base.FixtureSetup();

			m_app = TestApp;
			m_app.Start();
			ActivateAllMenuItems(m_app.MainAccessibilityHelper);
		}
Example #5
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");
        }
Example #6
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");
        }
Example #7
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);
        }
Example #8
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);
		}