public void GetShorthandTypeByUnits_Static_None(string unitsAsString) { cUnits units = new cUnits(); units.ParseStringToUnits(unitsAsString); cUnitsController.eUnitTypeShorthand result = cUnitsController.GetShorthandTypeByUnits(units); Assert.That(result, Is.EqualTo(cUnitsController.eUnitTypeShorthand.None)); }
public void GetShorthandTypeByUnits_Static_Speed( string unitsAsString, cUnitsController.eUnitTypeShorthand expectedResult) { cUnits units = new cUnits(); units.ParseStringToUnits(unitsAsString); cUnitsController.eUnitTypeShorthand result = cUnitsController.GetShorthandTypeByUnits(units); Assert.That(result, Is.EqualTo(expectedResult)); }