public void TestAllTrueAndFalse() { var listoften = new List <int>(); var i = 0; while (i < 10) { listoften.Add(i); i++; } var pool = new WorkerPool(); pool.Start(); var areUnderEleven = pool.All(listoften, x => x < 11); Assert.IsTrue(areUnderEleven); var areUnderEight = pool.All(listoften, x => x < 8); Assert.IsFalse(areUnderEight); }
public void TestAllFalse() { var listoften = new List <int>(); var i = 0; while (i < 10) { listoften.Add(i); i++; } var pool = new WorkerPool(); pool.Start(); var areUnderThree = pool.All(listoften, x => x < 3); Assert.IsTrue(!areUnderThree); }