Example #1
0
        public void AddRangeIfNotContainsTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.AddRangeIfNotContains(null, "test0", "test1", "test2");

            Assert.Throws <ArgumentNullException>(test);
        }
        public void AddRangeIfNotContains1TestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.AddRangeIfNotContains(null, new List <String> {
                "test0", "test1", "test2"
            });

            test.ShouldThrow <ArgumentNullException>();
        }