예제 #1
0
        public void ShouldRemoveCityFromList()
        {
            CityListManager listManager = new CityListManager();

            string path = @"..//..//adhed//CityTrainingTwo//Files//cities.txt";

            listManager.LoadElements(path);

            var result1 = listManager.CheckElementExists("Karpacz");

            listManager.RemoveElement("Karpacz");

            var result2 = listManager.CheckElementExists("Karpacz");

            Assert.IsFalse(result2);
        }
예제 #2
0
        public void ShouldRemoveCityFromList()
        {
            CityListManager listManager = new CityListManager();

            string path = @"..//..//adhed//CityTrainingTwo//Files//cities.txt";
            listManager.LoadElements(path);

            var result1 = listManager.CheckElementExists("Karpacz");

            listManager.RemoveElement("Karpacz");

            var result2 = listManager.CheckElementExists("Karpacz");

            Assert.IsFalse(result2);
        }