public void Remove_Item_Null() { WordInfoCollection sut = new WordInfoCollection(); var ex = Assert.Throws <ArgumentNullException>(() => sut.Remove(null)); Assert.Equal("Value cannot be null.\r\nParameter name: item", ex.Message); }
public void Remove_NullItem() { WordInfoCollection collection = new WordInfoCollection(); collection.Remove(null); }
public void Remove_NullItem() { WordInfoCollection collection = new WordInfoCollection(); Assert.That(() => collection.Remove(null), Throws.ArgumentNullException); }