示例#1
0
        [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);
        }
示例#2
0
 public float KelvintoCelcius(float temp)
 {
     return(TempConvert.KelvinToCelcius(temp));
 }