public void ParseNumberAndFractionCorrectly() { string input = "4 1/4"; double answer = -1; answer = ParseHandler.measurementConversion(input); Assert.AreEqual(answer, 4.25); }
public void ParseFractionCorrectly() { string input = "3/4"; double answer = -1; answer = ParseHandler.measurementConversion(input); Assert.AreEqual(answer, 0.75); }