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