public void TestInitConstructor() { //arrange var firstPeople = new Person(123L, "first"); var secondPeople = new Person(234L, "second"); var thirdPeople = new Person(12598L, "third"); var allPeople = new IPerson[] { firstPeople, secondPeople, thirdPeople }; //act this.database = new ExDatabase(allPeople); //assert Assert.AreEqual(3, this.database.Count, $"Constructor doesn't work with {typeof(IPerson)} as parameter"); }
public void DatabaseInitializeConstructorWithNullLeadsToEmptyDb() { // Assert Assert.DoesNotThrow(() => this.database = new ExDatabase(null)); }
public void TestInit() { this.database = new ExDatabase(); }