[Test] public void ForEachCallsActionWithEachItem()
        {
            var sut = new CopyOnWriteList <T>(Samples);
            var all = new List <T>(SampleSize);

            sut.ForEach(all.Add);
            CollectionAssert.AreEqual(sut, all);
        }
        [Test] public void ForEachChokesOnNullAction()
        {
            var sut = new CopyOnWriteList <T>();

            Assert.Catch <ArgumentNullException>(() => sut.ForEach(null));
        }