public void CanCreateOutputFile()
        {
            var pricefileTxt = "pricefile.txt";

            if (File.Exists(pricefileTxt)) File.Delete(pricefileTxt);

            var premiumSuppliers = new List<int> {219, 204};
            var troubleSuppliers = new List<int> {32, 101};
            var products = new Dictionary<string, Product>
                {
                    {"Apples", new Product(1100, 1199, .40, 14)},
                    {"Bananas", new Product(1200, 1299, .35, 5)},
                    {"Berries", new Product(1300, 1399, .55, 7)}
                };

            var productCollection = new ProductList(
                premiumSuppliers,
                troubleSuppliers,
                .1,
                2,
                products
            );

            var generator = new PriceFileGenerator(new ProduceFileParser(), productCollection);

            generator.CreatePriceFile(pricefileTxt, @".\Data\produce.csv");

            assertFileContentsAreSame("..\..\pricefile.txt", pricefileTxt);
        }
        public void CanCreateOutputFile()
        {
            var pricefileTxt = "pricefile.txt";

            if (File.Exists(pricefileTxt))
            {
                File.Delete(pricefileTxt);
            }

            var premiumSuppliers = new List <int> {
                219, 204
            };
            var troubleSuppliers = new List <int> {
                32, 101
            };
            var products = new Dictionary <string, Product>
            {
                { "Apples", new Product(1100, 1199, .40, 14) },
                { "Bananas", new Product(1200, 1299, .35, 5) },
                { "Berries", new Product(1300, 1399, .55, 7) }
            };

            var productCollection = new ProductList(
                premiumSuppliers,
                troubleSuppliers,
                .1,
                2,
                products
                );

            var generator = new PriceFileGenerator(new ProduceFileParser(), productCollection);

            generator.CreatePriceFile(pricefileTxt, @".\Data\produce.csv");

            assertFileContentsAreSame("..\..\pricefile.txt", pricefileTxt);
        }