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

            Assert.True(CollectionUtils.AddAllAtIndex(StringList, elements, 1, false));
            Assert.True(!StringList.Contains(null));
        }
        public void TestAddAllAtIndexSuccess()
        {
            var elements = new List <string> {
                "Roronoa", "Zoro", null
            };

            Assert.True(CollectionUtils.AddAllAtIndex(StringList, elements, 1));
            Assert.True(StringList.Contains("Roronoa"));
            Assert.AreEqual(1, StringList.IndexOf("Roronoa"));
            Assert.AreEqual(5, StringList.Count);
            Assert.True(StringList.Contains(null));
        }
 public void TestAddAllAtIndexByNullMainCollThrowsException()
 {
     Assert.Throws <NullReferenceException>(() => CollectionUtils.AddAllAtIndex(null, StringList, 1));
 }