public void CoffeeShopDataCapture_ShouldWork()
        {
            List <CoffeeShop> coffeeShopsList = new List <CoffeeShop>();

            string[] csvFileNameFromTerminalArguments = { " ", " ", "coffee_shops.csv" };

            CoffeeShopDataCapture.Capture(coffeeShopsList, csvFileNameFromTerminalArguments);

            List <string> expectedCoffeeShopsList = new List <string> {
                "Starbucks Sibiu Oituz, 45.7826201, 24.1465759",
                "Starbucks Bucuresti Calea Victoriei, 44.4514467, 26.0827712",
                "Starbucks Vienna, 48.1817174, 16.3798455",
                "Starbucks Sibiu Piata Mare, 45.7973354, 24.1503473",
                "Starbucks Andorra la Vella, 42.5080922, 1.5291981",
                "Starbucks Cluj Iulius Mall, 46.771803, 23.6234979"
            };

            List <string> actualCoffeeShopList = new List <string>();

            foreach (var coffeeShop in coffeeShopsList)
            {
                actualCoffeeShopList.Add($"{coffeeShop.Name}, {coffeeShop.Latitude}, {coffeeShop.Longitude}");
            }

            var actual = string.Join(", ", actualCoffeeShopList);

            var expected = string.Join(", ", expectedCoffeeShopsList);

            Assert.Equal(expected, actual);
        }
        public void CoffeeShopDataCaptureWithInvalidData_ShouldThrowError()
        {
            List <CoffeeShop> coffeeShopsList = new List <CoffeeShop>();

            string[] csvFileNameFromTerminalArguments = { " ", " ", "coffee_shops_with_incorrect_data.csv" };

            Assert.Throws <IndexOutOfRangeException>(() => CoffeeShopDataCapture.Capture(coffeeShopsList, csvFileNameFromTerminalArguments));
        }