public void AddsObjectToList() { var list = new DeletableObjectList <TestDeletable>(); var deletable = new TestDeletable(); list.Add(deletable); list.Should().ContainSingle().Which.Should().Be(deletable); }
public void CanAddMultipleItems(int itemsToAdd) { var list = new DeletableObjectList <TestDeletable>(); var items = getDeletables(itemsToAdd); foreach (var item in items) { list.Add(item); } list.Should().BeEquivalentTo(items, withExactSameItems); }
public void CreatesEmptyListForPositiveValues(int count) { var list = new DeletableObjectList <IDeletable>(count); list.Should().BeEmpty(); }
public void CreatesEmptyListForZeroValue() { var list = new DeletableObjectList <IDeletable>(0); list.Should().BeEmpty(); }
public void CreatesEmptyList() { var list = new DeletableObjectList <IDeletable>(); list.Should().BeEmpty(); }