public void TestIntValues()
    {

      Assert.Equal(113, _convert.CelsiusToFahrenheit(45));
      Assert.Equal(32, _convert.CelsiusToFahrenheit(0));
      Assert.Equal(77, _convert.CelsiusToFahrenheit(25));
      Assert.Equal(95, _convert.CelsiusToFahrenheit(35));

    }
Пример #2
0
    static void Main()
    {
        string[] input = Console.ReadLine().Split().ToArray();

        while (input[0] != "End")
        {
            if (input[1] == "Celsius")
            {
                ConvertTemperature.CelsiusToFahrenheit(Convert.ToInt32(input[0]));
            }
            else
            {
                ConvertTemperature.FahrenheitToCelsius(Convert.ToInt32(input[0]));
            }
            input = Console.ReadLine().Split().ToArray();
        }
    }