public void AddRangeTestNullCheck1() { // ReSharper disable once AssignNullToNotNullAttribute Action test = () => CollectionTEx.AddRange(new List <String>(), null); test.ShouldThrow <ArgumentException>(); }
public void AddRangeTestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute Action test = () => CollectionTEx.AddRange(null, "test0", "test1", "test2"); test.ShouldThrow <ArgumentNullException>(); }
public void AddRangeTest1NullCheck1() { List <String> array = null; // ReSharper disable once AssignNullToNotNullAttribute Action test = () => CollectionTEx.AddRange(new List <String>(), array); Assert.Throws <ArgumentNullException>(test); }
public void AddRangeTest1NullCheck() { // ReSharper disable once AssignNullToNotNullAttribute Action test = () => CollectionTEx.AddRange(null, new List <String> { "test0", "test1", "test2" }); Assert.Throws <ArgumentNullException>(test); }
public void AddRangeTest1() { var c = new List <String>(); var result = CollectionTEx.AddRange(c, new List <String> { "test0", "test1", "test2" }); Assert.Equal(3, c.Count); Assert.Same(c, result); }