public void RemoveRangeIfTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.RemoveRangeIf(null, x => false, "test0", "test1", "test2");

            test.ShouldThrow <ArgumentNullException>();
        }
Example #2
0
        public void RemoveRangeTestIfCase1NullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.RemoveRangeIf(null, x => false, new List <String> {
                "test0", "test1", "test2"
            });

            Assert.Throws <ArgumentNullException>(test);
        }