public void ConvertKilogramsToGrams(double kilograms, double expectedGrams) => Assert.Equal(expectedGrams, UnitOfMeasureHelper.ConvertKilogramsToGrams(kilograms));
public void ConvertGramsToKilograms(double grams, double expectedKilograms) => Assert.Equal(expectedKilograms, UnitOfMeasureHelper.ConvertGramsToKilograms(grams));
public void ConvertMetersToCentimetersTest(double centimeters, double expectedMeters) => Assert.Equal(expectedMeters, UnitOfMeasureHelper.ConvertMetersToCentimeters(centimeters));
public void DimensionsToString(double val, UnitOfMeasure u, string expected) { Assert.AreEqual(expected, UnitOfMeasureHelper.DimensionToString(val, u)); }
public void Converts(double val, UnitOfMeasure from, UnitOfMeasure to, double expected) { Assert.AreEqual(expected, UnitOfMeasureHelper.Convert(val, from, to)); }
public void Precisions(UnitOfMeasure u, int expectedPrecision) { Assert.AreEqual(UnitOfMeasureHelper.GetPrecisionForUnit(u), expectedPrecision); }