public void AConversionFromEnergyToMass() { var m = new Measure(1, U.Kilogram); var m2 = ug.Convert(m, U.Joule); m2.Value.IsEqualTo(89875517873681764); m2.Unit.IsEqualTo(U.Joule); }
public void TheGraphSupportsConversionOverSeveralEdges() { var m = new Measure(1.0m, U.Inch); var m2 = ug.Convert(m, U.Meter); m2.Value.IsEqualTo(0.0254m); m2.Unit.Equals(U.Meter); }