コード例 #1
0
ファイル: AppInteractTest.cs プロジェクト: sillsdev/WorldPad
		public void NonExistentExecutable()
		{
			CheckDisposed();
			AppInteract app = new AppInteract(@"NonExistent.exe");
			Assert.IsNotNull(app);
			Assert.IsFalse(app.Start());
		}
コード例 #2
0
        public void NonExistentExecutable()
        {
            AppInteract app = new AppInteract(@"NonExistent.exe");

            Assert.IsNotNull(app);
            Assert.IsFalse(app.Start());
        }
コード例 #3
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            m_app = TestApp;
            m_app.Start();
            ActivateAllMenuItems(m_app.MainAccessibilityHelper);
        }
コード例 #4
0
ファイル: MenuTester.cs プロジェクト: sillsdev/WorldPad
		public override void FixtureSetup()
		{
			CheckDisposed();
			base.FixtureSetup();

			m_app = TestApp;
			m_app.Start();
			ActivateAllMenuItems(m_app.MainAccessibilityHelper);
		}
コード例 #5
0
ファイル: AppInteractTest.cs プロジェクト: bbriggs/FieldWorks
        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");
        }
コード例 #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");
        }
コード例 #7
0
ファイル: MenuTester.cs プロジェクト: sillsdev/WorldPad
        /// <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);
        }
コード例 #8
0
ファイル: MenuTester.cs プロジェクト: sillsdev/WorldPad
		/// <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);
		}