public void AddAndReturnTest()
        {
            var TestObject = new ConcurrentBag <int>(new int[] { 1, 2, 3, 4, 5, 6 });
            int Item       = 7;

            Assert.Equal(Item, TestObject.AddAndReturn(Item));
        }
        public void AddAndReturnNull()
        {
            ConcurrentBag <int> TestObject = null;
            const int           Item       = 7;

            Assert.ThrowsAny <ArgumentNullException>(() => TestObject.AddAndReturn(Item));
        }
 public void AddAndReturnTest()
 {
     var TestObject = new ConcurrentBag<int>(new int[] { 1, 2, 3, 4, 5, 6 });
     int Item = 7;
     Assert.Equal(Item, TestObject.AddAndReturn(Item));
 }