示例#1
0
        public void SplitMeasurementFraction1()
        {
            var split   = new SplitFraction();
            var actual  = split.SplitFractionIntoNumeratorAndDenominator("3 3/4 tablespoons");
            var exected = new string[] { "3", "4" };

            Assert.AreEqual(exected, actual);
        }
示例#2
0
        public void SplitMesaurementFractio4()
        {
            var split    = new SplitFraction();
            var actual   = split.SplitFractionIntoNumeratorAndDenominator("4 5/16 cups");
            var expected = new string[] { "5", "16" };

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void SplitMeasurementFraction()
        {
            var split    = new SplitFraction();
            var actual   = split.SplitFractionIntoNumeratorAndDenominator("1/2 cups");
            var expected = new string[] { "1", "2" };

            Assert.AreEqual(expected, actual);
        }