コード例 #1
0
        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(""));
        }
コード例 #2
0
        public string AssignShorthandUnits_With_Schema_Type(string shorthandName, string schemaType)
        {
            cUnitsController unitsController = new cUnitsController();

            unitsController.AssignShorthandUnits(shorthandName, schemaType);
            return(unitsController.Units.GetUnitsLabel());
        }
コード例 #3
0
        public string AssignShorthandUnits(string shorthandName)
        {
            cUnitsController unitsController = new cUnitsController();

            unitsController.AssignShorthandUnits(shorthandName);
            return(unitsController.Units.GetUnitsLabel());
        }