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