TsUnitOfMeasure Class Reference

#include <TsUnitOfMeasure.h>

Inheritance diagram for TsUnitOfMeasure:

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 Member Functions

 CPPUNIT_TEST (tcGetId)
 
 CPPUNIT_TEST (tcGetName)
 
 CPPUNIT_TEST (tcGetDescription)
 
 CPPUNIT_TEST (tcGetSymbol)
 
 CPPUNIT_TEST (tcGetType)
 
 CPPUNIT_TEST (tcIsBaseUnit)
 
 CPPUNIT_TEST (tcGetBaseUnitId)
 
 CPPUNIT_TEST (tcGetConversionFactors)
 
 CPPUNIT_TEST (tcGetConversionValue)
 
 CPPUNIT_TEST_SUITE (TsUnitOfMeasure)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

te::common::UnitOfMeasureuomA
 
te::common::UnitOfMeasureuomB
 
te::common::UnitOfMeasureuomC
 
te::common::UnitOfMeasureuomD
 

Detailed Description

Definition at line 56 of file TsUnitOfMeasure.h.

Member Function Documentation

TsUnitOfMeasure::CPPUNIT_TEST ( tcGetId  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetName  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetDescription  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetSymbol  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetType  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcIsBaseUnit  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetBaseUnitId  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetConversionFactors  )
private
TsUnitOfMeasure::CPPUNIT_TEST ( tcGetConversionValue  )
private
TsUnitOfMeasure::CPPUNIT_TEST_SUITE ( TsUnitOfMeasure  )
private
TsUnitOfMeasure::CPPUNIT_TEST_SUITE_END ( )
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.

void TsUnitOfMeasure::tcGetBaseUnitId ( )
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.

void TsUnitOfMeasure::tcGetConversionFactors ( )
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.

void TsUnitOfMeasure::tcGetConversionValue ( )
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.

void TsUnitOfMeasure::tcGetDescription ( )
protected

Test Case: Checks the unit of measure description.

Definition at line 57 of file TsUnitOfMeasure.cpp.

References te::common::UnitOfMeasure::getDescription(), and uomC.

void TsUnitOfMeasure::tcGetId ( )
protected

Test Case: Checks the unit of measure identification.

Definition at line 47 of file TsUnitOfMeasure.cpp.

References te::common::UnitOfMeasure::getId(), and uomA.

void TsUnitOfMeasure::tcGetName ( )
protected

Test Case: Checks the unit of measure name.

Definition at line 52 of file TsUnitOfMeasure.cpp.

References te::common::UnitOfMeasure::getName(), and uomB.

void TsUnitOfMeasure::tcGetSymbol ( )
protected

Test Case: Checks the unit of measure symbol.

Definition at line 62 of file TsUnitOfMeasure.cpp.

References te::common::UnitOfMeasure::getSymbol(), and uomD.

void TsUnitOfMeasure::tcGetType ( )
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.

void TsUnitOfMeasure::tcIsBaseUnit ( )
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 ( )

Definition at line 39 of file TsUnitOfMeasure.cpp.

References uomA, uomB, uomC, and uomD.

Member Data Documentation

te::common::UnitOfMeasure* TsUnitOfMeasure::uomA
private
te::common::UnitOfMeasure* TsUnitOfMeasure::uomB
private

Definition at line 117 of file TsUnitOfMeasure.h.

Referenced by setUp(), tcGetConversionValue(), tcGetName(), tcIsBaseUnit(), and tearDown().

te::common::UnitOfMeasure* TsUnitOfMeasure::uomC
private

Definition at line 118 of file TsUnitOfMeasure.h.

Referenced by setUp(), tcGetDescription(), tcIsBaseUnit(), and tearDown().

te::common::UnitOfMeasure* TsUnitOfMeasure::uomD
private

Definition at line 119 of file TsUnitOfMeasure.h.

Referenced by setUp(), tcGetBaseUnitId(), tcGetSymbol(), and tearDown().


The documentation for this class was generated from the following files: