public void when_null_is_added_then_collection_does_not_change() { var obj = new Class_DisposableCollection(); // ACT _disposableCollection.Add(null); // ASSERT Assert.AreEqual(2, _disposableCollection.Count); }
public void when_remove_existing_item_then_does_not_dispose_other_items() { var obj = new Class_DisposableCollection(); // ACT _disposableCollection.Remove(_disposable1); // ASSERT Assert.False(_disposable2.HasBeenDisposed); }