static void Main(string[] args) { prototipo prototipo = new prototipo(); Kelvin kelvin = new Kelvin(); Celsius celsius = new Celsius(); Farenheit farenheit = new Farenheit(); int input; prototipo.inicio(); input = Convert.ToInt32(Console.ReadLine()); if (input == 1) { farenheit.ResolucionFarenheit(); } else if (input == 2) { celsius.ResolucionCelsius(); } else if (input == 3) { kelvin.ResolucionKelvin(); } Console.ReadKey(); }
public void Farenheit_2_kelvin() { FloatCompare(273.15f, Farenheit.Kelvin(32)); FloatCompare(373.15f, Farenheit.Kelvin(212)); }
public void Farenheit_2_celsius() { FloatCompare(0, Farenheit.Celsius(32), 4); FloatCompare(100, Farenheit.Celsius(212), 4); }