[TestMethod()] // C to F public void Freezing_CelciusToFahrenheitTest() { float celcius = 0.00f; float expected = 32.00f; TempConvert convert = new TempConvert(); float actual = float.Parse(convert.CelciusToFahrenheit(celcius).ToString("n2")); Assert.AreEqual(expected, actual); }
public float CelciusToFahrenheit(float temp) { return(TempConvert.CelciusToFahrenheit(temp)); }