public void TestAddAllIgnoreNullSuccess()
        {
            var elements = new List <string> {
                "Roronoa", "Zoro", null
            };

            Assert.True(CollectionUtils.AddAllIgnoreNull(StringList, elements));
            Assert.True(StringList.Contains("Roronoa"));
            Assert.True(!StringList.Contains(null));
        }
 public void TestAddAllIgnoreNullByNullMainCollThrowsException()
 {
     Assert.Throws <NullReferenceException>(() => CollectionUtils.AddAllIgnoreNull(null, StringList));
 }
 public void TestAddAllIgnoreNullByNullElementsCollThrowsException()
 {
     Assert.Throws <ArgumentNullException>(() => CollectionUtils.AddAllIgnoreNull(StringList, null));
 }