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); }
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); }
public void SplitMeasurementFraction() { var split = new SplitFraction(); var actual = split.SplitFractionIntoNumeratorAndDenominator("1/2 cups"); var expected = new string[] { "1", "2" }; Assert.AreEqual(expected, actual); }