public void AssignShorthandUnits_With_Empty_Shorthand_Name_Removes_Shorthand_Units(string shorthandName) { cUnitsController unitsController = new cUnitsController(); unitsController.AssignShorthandUnits("lb*ft"); //Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("lb*ft")); unitsController.AssignShorthandUnits(shorthandName); Assert.That(unitsController.Units.GetUnitsLabel(), Is.EqualTo("")); }
public string AssignShorthandUnits_With_Schema_Type(string shorthandName, string schemaType) { cUnitsController unitsController = new cUnitsController(); unitsController.AssignShorthandUnits(shorthandName, schemaType); return(unitsController.Units.GetUnitsLabel()); }
public string AssignShorthandUnits(string shorthandName) { cUnitsController unitsController = new cUnitsController(); unitsController.AssignShorthandUnits(shorthandName); return(unitsController.Units.GetUnitsLabel()); }