Exemple #1
0
        protected bool LaunchServer()
        {
            String program   = "../../../VideoSyncServer/bin/Debug/VideoSyncServer.exe";
            String arguments = "-autoconnect -autoplay";

            m_library.ExecuteCommand_NoWait(program, arguments);

            return(ReportProcessIsRunning("VideoSyncServer"));
        }
Exemple #2
0
        public void VerifyProcessIsRunningTest()
        {
            m_library.ExecuteCommand_NoWait(@"c:\temp\MyMediaPlayer.exe", "");
            System.Threading.Thread.Sleep(100);

            bool isRunning = m_library.VerifyProcessIsRunning("MyMediaPlayer");

            Assert.IsTrue(isRunning);

            m_library.KillRunningProcess("MyMediaPlayer");
            System.Threading.Thread.Sleep(100);

            bool isNotRunning = m_library.VerifyProcessIsRunning("MyMediaPlayer");

            Assert.IsFalse(isNotRunning);

            isNotRunning = m_library.KillRunningProcess("MyMediaPlayer");
            Assert.IsFalse(isNotRunning);
        }