Ejemplo n.º 1
0
        public void RemoveRangeTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.RemoveRange(null, "test0", "test1", "test2");

            Assert.Throws <ArgumentNullException>(test);
        }
Ejemplo n.º 2
0
        public void RemoveRangeTest1NullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => CollectionTEx.RemoveRange(null, new List <String> {
                "test0", "test1", "test2"
            });

            test.ShouldThrow <ArgumentNullException>();
        }