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()); }
public void AddMethodTest() { // Arrange var database = new _1.Database.Models.Database(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); // Assert Assert.Throws <InvalidOperationException>(() => database.Add(30)); }
public void AddMethodShouldAddOneElement() { // Arrange var database = new _1.Database.Models.Database(1); // Act database.Add(1); // Assert Assert.AreEqual(2, database.Count()); }