public void EnqueueFunctionalityTest() { int size = 10; var tasks = new IMyTask <int> [10]; for (int i = 0; i < size; i++) { var localI = i; tasks[localI] = pool.Enqueue(() => 1000 * (localI + 1)); } for (int i = 0; i < size; i++) { Assert.AreEqual((i + 1) * 1000, tasks[i].Result); } }