Exemplo n.º 1
0
        public void CalculatePercentage2()
        {
            var vw       = new VolumeToWeightLogic();
            var expected = .8m;
            var actual   = vw.PercentageOfMeasuredCupsToStandardCups(("4/5"));

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public decimal GetAmountOfOuncesUsed(string Ingredient, string measuredCups, string filename)
        {
            var vw     = new VolumeToWeightLogic();
            var divide = new GeneralFunctionality();
            var GetOuncesForIngredient = vw.ReadOuncesForIngredient(Ingredient, filename);
            var GetPercentMeasuredCupsToStandardCups = vw.PercentageOfMeasuredCupsToStandardCups(measuredCups);

            return(GetPercentMeasuredCupsToStandardCups * GetOuncesForIngredient);
        }