[TestMethod()] // K to C public void Boiling_KelvinToCelciusTest() { float kelvin = 373.15f; float expected = 100.00f; TempConvert convert = new TempConvert(); float actual = float.Parse(convert.KelvinToCelcius(kelvin).ToString("n2")); Assert.AreEqual(expected, actual); }
public float KelvintoCelcius(float temp) { return(TempConvert.KelvinToCelcius(temp)); }