Example #1
0
 public void Init()
 {
     _kelvinToFahrenheit = StandardConverter.KelvinToFahrenheit;
     _sut = new StandardConverter();
 }
Example #2
0
 public void TearDown()
 {
     _fahrenheitToCelsius = null;
     _sut = null;
 }
Example #3
0
 public void Init()
 {
     _fahrenheitToCelsius = StandardConverter.FahrenheitToCelsius;
     _sut = new StandardConverter();
 }
Example #4
0
 public void TearDown()
 {
     _celsiusToKelvin = null;
     _sut             = null;
 }
Example #5
0
 public void Init()
 {
     _celsiusToKelvin = StandardConverter.CelsiusToKelvin;
     _sut             = new StandardConverter();
 }
Example #6
0
 public double Convert(double temperature, ConversionFormula conversionFormula, int roundBy = 0)
 {
     return(Math.Round(conversionFormula(temperature), roundBy));
 }