public void ConvertStringMeasurementsPinchToDecimalTeaspoons() { var convert = new ConvertMeasurement(); var expected = 0.06m; var actual = convert.AdjustToTeaspoons("1 pinch"); Assert.AreEqual(expected, actual); }
public void ConvertStringMeasurementTeaspoonsToDecimalTeaspoons4() { var convert = new ConvertMeasurement(); var expected = 1.5m; var actual = convert.AdjustToTeaspoons("1 1/2 teaspoons"); Assert.AreEqual(expected, actual); }
public void ConvertStringMeasurementCupsToDecimalTeaspoons4() { var convert = new ConvertMeasurement(); var expected = 312m; var actual = convert.AdjustToTeaspoons("6 1/2 cups"); Assert.AreEqual(expected, actual); }
public void ConvertStringMeasurementTablespoonsToDecimalTeaspoons3() { var convert = new ConvertMeasurement(); var expected = 48m; var actual = convert.AdjustToTeaspoons("16 tablespoons"); Assert.AreEqual(expected, actual); }
public void ConvertStringMeasurementCupsToDecimalTeaspoons3() { var convert = new ConvertMeasurement(); var exepected = 16m; var actual = convert.AdjustToTeaspoons("1/3 cup"); Assert.AreEqual(exepected, actual); }