Exemple #1
0
        public void ConvertLbsToOunces2()
        {
            var convert  = new ConvertMeasurementCalculations();
            var expected = 89.6m;
            var actual   = convert.ConvertWeightToOunces("5.6 pounds");

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void ConvertGallonToOunces()
        {
            var convert  = new ConvertMeasurementCalculations();
            var expected = 192m;
            var actual   = convert.ConvertWeightToOunces("1 1/2 gallons");

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void ConvertOuncesToOunces()
        {
            var convert  = new ConvertMeasurementCalculations();
            var expected = 15.5m;
            var actual   = convert.ConvertWeightToOunces("15.5 ounces");

            Assert.AreEqual(expected, actual);
        }