public void RemoveMethodTestRemoveElementWithEmptyCollection() { // Arrange var database = new _1.Database.Models.Database(); //Assert Assert.Throws <InvalidOperationException>(() => database.Remove()); }
public void RemoveMethodShoulRemoveOneElement() { // Arrange var database = new _1.Database.Models.Database(1, 2); // Act database.Remove(); // Assert Assert.AreEqual(1, database.Count()); }
public void MethodCount() { // Arrange var database = new _1.Database.Models.Database(1, 2, 3); // Act database.Add(1); database.Remove(); database.Add(3); // Assert Assert.AreEqual(4, database.Count()); }