Ejemplo n.º 1
0
        public void PricePerOunceTest2()
        {
            var price    = new PriceLogic();
            var expected = .026m;
            var actual   = price.PricePerOunce(.13m, 5);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void PricePerOunceTest()
        {
            var price    = new PriceLogic();
            var expected = .1m;
            var actual   = price.PricePerOunce(.20m, 2);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public void PricePerPoundTest2()
        {
            var price    = new PriceLogic();
            var expected = 3.5m;
            var actual   = price.PricePerPound(7, 2);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 4
0
        public void TestGetCinnamonPrice()
        {
            var getprice = new PriceLogic();
            var filename = @"C:\Users\Rachel\Documents\Visual Studio 2015\Projects\RachelsRoses\Rachel-s-Roses\ItemResponseDatabase.txt";
            var expected = 2.44m;
            var actual   = getprice.GetPriceForIndividualIngredient("cinnamon");//, filename);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 5
0
        public void GetPriceForMiniChocolateChips()
        {
            var getprice = new PriceLogic();
            var filename = @"C:\Users\Rachel\Documents\Visual Studio 2015\Projects\RachelsRoses\Rachel-s-Roses\ItemResponseDatabase.txt";
            var expected = 2.71m;
            var actual   = getprice.GetPriceForIndividualIngredient("mini morsels");//, filename);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 6
0
        public void GetPricePerOunceForFlour()
        {
            var getprice         = new PriceLogic();
            var ratioDatabase    = @"C:\Users\Rachel\Documents\Visual Studio 2015\Projects\RachelsRoses\Rachel-s-Roses\VolumeToWeightIngredientData.txt";
            var responseDatabase = @"C:\Users\Rachel\Documents\Visual Studio 2015\Projects\RachelsRoses\Rachel-s-Roses\ItemResponseDatabase.txt";;
            var expected         = .103m;
            var actual           = getprice.GetPriceForOneOunceOfIngredient("cake flour", ratioDatabase, responseDatabase);

            Assert.AreEqual(expected, actual);
        }