示例#1
0
        public void TestCreationOfNonPreemptiveSimpleTaskSchedulerWithTwoThreads()
        {
            int numberOfThreads    = 2;
            SimpleTaskScheduler st = SimpleTaskScheduler.CreateNonPreemptive(numberOfThreads);

            Assert.AreEqual(numberOfThreads, st.GetMaxParallelTasks());
            Assert.AreEqual(false, st.IsSchedulerPreemptive());
        }