public void TestCreationOfNonPreemptiveSimpleTaskSchedulerWithTwoThreads() { int numberOfThreads = 2; SimpleTaskScheduler st = SimpleTaskScheduler.CreateNonPreemptive(numberOfThreads); Assert.AreEqual(numberOfThreads, st.GetMaxParallelTasks()); Assert.AreEqual(false, st.IsSchedulerPreemptive()); }