#include <TsUnitOfMeasure.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcGetBaseUnitId () |
| Test Case: Checks the base unit id from which this unit derives of. More... | |
| void | tcGetConversionFactors () |
| Test Case: Checks if the conversion factors to convert the unit to its base unit are correct. More... | |
| void | tcGetConversionValue () |
| Test Case: Checks the multiplicative value to convert the unit to its base unit. More... | |
| void | tcGetDescription () |
| Test Case: Checks the unit of measure description. More... | |
| void | tcGetId () |
| Test Case: Checks the unit of measure identification. More... | |
| void | tcGetName () |
| Test Case: Checks the unit of measure name. More... | |
| void | tcGetSymbol () |
| Test Case: Checks the unit of measure symbol. More... | |
| void | tcGetType () |
| Test Case: Checks the unit of measure type. More... | |
| void | tcIsBaseUnit () |
| Test Case: Checks if it is returning true for a base unit and false for non-base units. More... | |
Private Attributes | |
| te::common::UnitOfMeasure * | uomA |
| te::common::UnitOfMeasure * | uomB |
| te::common::UnitOfMeasure * | uomC |
| te::common::UnitOfMeasure * | uomD |
Definition at line 56 of file TsUnitOfMeasure.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsUnitOfMeasure::setUp | ( | ) |
Definition at line 31 of file TsUnitOfMeasure.cpp.
References te::common::Angle, te::common::Length, te::common::Scale, uomA, uomB, uomC, and uomD.
|
protected |
Test Case: Checks the base unit id from which this unit derives of.
Definition at line 78 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getBaseUnitId(), and uomD.
|
protected |
Test Case: Checks if the conversion factors to convert the unit to its base unit are correct.
Definition at line 83 of file TsUnitOfMeasure.cpp.
References b, d, te::common::UnitOfMeasure::getConversionFactors(), and uomA.
|
protected |
Test Case: Checks the multiplicative value to convert the unit to its base unit.
Definition at line 94 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getConversionValue(), uomA, and uomB.
|
protected |
Test Case: Checks the unit of measure description.
Definition at line 57 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getDescription(), and uomC.
|
protected |
Test Case: Checks the unit of measure identification.
Definition at line 47 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getId(), and uomA.
|
protected |
Test Case: Checks the unit of measure name.
Definition at line 52 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getName(), and uomB.
|
protected |
Test Case: Checks the unit of measure symbol.
Definition at line 62 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getSymbol(), and uomD.
|
protected |
Test Case: Checks the unit of measure type.
Definition at line 67 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::getType(), te::common::Length, and uomA.
|
protected |
Test Case: Checks if it is returning true for a base unit and false for non-base units.
Definition at line 72 of file TsUnitOfMeasure.cpp.
References te::common::UnitOfMeasure::isBaseUnit(), uomB, and uomC.
| void TsUnitOfMeasure::tearDown | ( | ) |
|
private |
Definition at line 116 of file TsUnitOfMeasure.h.
Referenced by setUp(), tcGetConversionFactors(), tcGetConversionValue(), tcGetId(), tcGetType(), and tearDown().
|
private |
Definition at line 117 of file TsUnitOfMeasure.h.
Referenced by setUp(), tcGetConversionValue(), tcGetName(), tcIsBaseUnit(), and tearDown().
|
private |
Definition at line 118 of file TsUnitOfMeasure.h.
Referenced by setUp(), tcGetDescription(), tcIsBaseUnit(), and tearDown().
|
private |
Definition at line 119 of file TsUnitOfMeasure.h.
Referenced by setUp(), tcGetBaseUnitId(), tcGetSymbol(), and tearDown().