Exemple #1
0
        public void DeleteCarFromListTest()
        {
            _carsList.DeleteCarFromList("Prius");

            int expected = 0;
            int actual   = _carsList.GetCarsList().Count;

            Assert.AreEqual(expected, actual);
        }
        private void RemoveCar()
        {
            Console.WriteLine("Please enter the model name of the car you would like to remove:");
            string model = Console.ReadLine();

            _carsList.DeleteCarFromList(model);
            Console.WriteLine("Car removed from the list\n" +
                              "Press any key to continue...");
            Console.ReadKey();
        }