Esempio n. 1
0
        private void ThreadEntryPoint()
        {
            string mediaFile = System.Environment.CurrentDirectory + "\\IM_0001";

            string[] mediaFiles = { mediaFile };
            try
            {
                ok = mediaSession.ValidateMediaFiles(mediaFiles);
            }
            catch (Exception)
            {
                // If an exception was thrown, the ThreadState is still running.
                if (thread.ThreadState == ThreadState.Running)
                {
                    thread.Abort();
                }
            }
            finally
            {
                Assert.IsTrue(ok);
            }
        }