public void Kelvin_Celsius()
        {
            converter = new TemperatureConverter("kelvin", "celsius");
            double valL = 1;
            double valR = -272.150;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public void Fahrenheit_Kelvin()
        {
            converter = new TemperatureConverter("fahrenheit", "kelvin");
            double valL = 1;
            double valR = 255.928;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public void Celsius_Kelvin()
        {
            converter = new TemperatureConverter("celsius", "kelvin");
            double valL = 1;
            double valR = 274.150;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public void Fahrenheit_Celsius_Synonym()
        {
            converter = new TemperatureConverter("F", "C");
            double valL = 1;
            double valR = -17.222;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public void Kelvin_Fahrenheit()
        {
            converter = new TemperatureConverter("kelvin", "fahrenheit");
            double valL = 1;
            double valR = -457.87;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public void Celsius_Fahrenheit()
        {
            converter = new TemperatureConverter("celsius", "fahrenheit");
            double valL = 1;
            double valR = 33.800;

            Assert.AreEqual(valR, converter.LeftToRight(valL, 3));
            Assert.AreEqual(valL, converter.RightToLeft(valR, 3));
        }
        public ActionResult <IEnumerable <string> > Get(double unitVal, string UnitOfMeasureFrom, string UnitOfMeasureTo)
        {
            double lbValue;
            var    convertor = new TemperatureConverter(UnitOfMeasureFrom, UnitOfMeasureTo);

            lbValue = convertor.LeftToRight(unitVal);

            return(new string[] { unitVal.ToString() + " " + UnitOfMeasureFrom, lbValue.ToString() + " " + UnitOfMeasureTo });
        }