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);
 }
Example #3
0
        public void Remove_NullItem()
        {
            WordInfoCollection collection = new WordInfoCollection();

            Assert.That(() => collection.Remove(null), Throws.ArgumentNullException);
        }
Example #4
0
        public void Remove_NullItem()
        {
            WordInfoCollection collection = new WordInfoCollection();

            collection.Remove(null);
        }