public void ShouldGetEmptyList() { GenericListManager <City> listManager = new CityListManager(); List <City> list = listManager.GetList(); Assert.AreEqual(list.Count, 0); }
public void ShouldLoadTheCitiesFromTxtFile() { GenericListManager <City> listManager = new CityListManager(); string path = @"..//..//adhed//CityTrainingTwo//Files//cities.txt"; listManager.LoadElements(path); List <City> list = listManager.GetList(); bool result = listManager.CheckElementExists("Pieszyce"); Assert.IsTrue(result); }
public void ShouldGetListWithTwoRecords() { GenericListManager <City> listManager = new CityListManager(); City city1 = new City("Karpacz"); City city2 = new City("Jelenia Góra"); listManager.AddElement(city1); listManager.AddElement(city2); List <City> list = listManager.GetList(); Assert.AreEqual(list.Count, 2); }
public void ShouldGetListWithTwoRecords() { GenericListManager<City> listManager = new CityListManager(); City city1 = new City("Karpacz"); City city2 = new City("Jelenia Góra"); listManager.AddElement(city1); listManager.AddElement(city2); List<City> list = listManager.GetList(); Assert.AreEqual(list.Count, 2); }
public void ShouldGetEmptyList() { GenericListManager<City> listManager = new CityListManager(); List<City> list = listManager.GetList(); Assert.AreEqual(list.Count, 0); }
public void ShouldLoadTheCitiesFromTxtFile() { GenericListManager<City> listManager = new CityListManager(); string path = @"..//..//adhed//CityTrainingTwo//Files//cities.txt"; listManager.LoadElements(path); List<City> list = listManager.GetList(); bool result = listManager.CheckElementExists("Pieszyce"); Assert.IsTrue(result); }