public string GetCelsiusToKelvin(float val)
 {
     return(string.Format("{0} ºC são {1} K", val, ConvertTemperature.CelsiusToKelvin(val)));
 }
コード例 #2
0
 public void ValidCelsiusToKelvin()
 {
     Assert.Equal(453f, ConvertTemperature.CelsiusToKelvin(180f));
 }