Exemplo n.º 1
0
        public void Initialization_DefaultOptions_StartsThreadSuccessfully()
        {
            ThreadManager.Initialise();
            try
            {
                TestThread testThread = new TestThread();
                ThreadManager.ThreadStart(testThread, nameof(testThread), ThreadPriority.Normal);

                Thread.Sleep(1000);
                testThread.CancelThread();
                ThreadManager.CancelAll();
            }
            finally
            {
                ThreadManager.Finalise();
            }
        }