public void ForEachTest()
        {
            var items = new List <Item> {
                new Item {
                    Name = ""
                }
            };

            ParallelTask.ForEach(items, (item, index) => {
            });

            Assert.ThrowsException <AggregateException>(() =>
            {
                ParallelTask.ForEach(items, (item, index) => throw new Exception());
            });

            Assert.AreEqual(1, 1);
        }