public string ParseStringToUnits(string unitsToParse)
        {
            cUnitsController unitsController = new cUnitsController();

            unitsController.ParseStringToUnits(unitsToParse);
            return(unitsController.Units.GetUnitsLabel());
        }
        public void MakeUnitsConsistent()
        {
            cUnitsController unitsController = new cUnitsController();

            unitsController.ParseStringToUnits("lb*kN/in");

            Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("(lb*kN)/in"));

            string unitsToApply = "lb, ft";

            unitsController.MakeUnitsConsistent(unitsToApply);

            Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("lb/ft"));
        }
        public void MakeUnitsConsistent_From_List()
        {
            cUnitsController unitsController = new cUnitsController();

            unitsController.ParseStringToUnits("lb*kN/in");

            Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("(lb*kN)/in"));

            List <string> unitsToApply = new List <string> {
                "lb", "ft"
            };

            unitsController.MakeUnitsConsistent(unitsToApply);

            Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("lb/ft"));
        }