public void SplitMeasurementTest2() { var split = new SplitFraction(); var actual = split.SplitMeasurementValueAndName(".75 tablespoons"); var expected = new string[] { ".75", "tablespoons" }; Assert.AreEqual(expected, actual); }
public void SplitMeasurementTest() { var split = new SplitFraction(); var actual = split.SplitMeasurementValueAndName("1 cup"); var expected = new string[] { "1", "cup" }; Assert.AreEqual(expected, actual); }