Unit_test
[Residential loads (residential)]


Detailed Description

Todo:
(ticket #159)


Classes

class  residential_test
 Sample unit test for a Module. More...

Functions

OBJECTresidential_test::clotheswasher_create ()
void residential_test::clotheswasher_test ()
OBJECTresidential_test::house_create ()
 Test the creation of an object.
void residential_test::house_test ()
OBJECTresidential_test::lights_create ()
void residential_test::lights_test ()
 residential_test::residential_test ()
void residential_test::setup ()
 Called by CPPUnit to ensure that any special pre-testing steps are completed before the tests are executed.
void residential_test::waterheater_test ()


Function Documentation

OBJECT* residential_test::house_create (  )  [inline, inherited]

Test the creation of an object.

Part of this test includes retrieving the class that this object will represent, creating the object, and testing certain post creation assumptions.

For each feature of the module that we want to test, we should create a separate test function. A function prototype is acceptable here, with the implementation of the method in a .cpp file.

Definition at line 49 of file test.h.

References test_helper::get_class_by_name(), and gl_create_object.

Referenced by residential_test::clotheswasher_test(), residential_test::house_test(), residential_test::lights_test(), and residential_test::waterheater_test().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy