public void MilesToKilometers(double miles, double km) { Assert.Equal(km, UnitConverters.MilesToKilometers(miles), 4); }
private void ToKilometers(object Miles) { _kilometers = UnitConverters.MilesToKilometers(Convert.ToDouble(Miles)).ToString(); RaisePropertyChanged("Kilometers"); }
public override double ConvertToBaseUnits(double valueInMilies) => UnitConverters.MilesToKilometers(valueInMilies) * 1000;