Class: BTAP::Resources::SpaceLoads::SpaceLoadsTests
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- BTAP::Resources::SpaceLoads::SpaceLoadsTests
- Defined in:
- lib/openstudio-standards/btap/spaceloads.rb
Instance Method Summary collapse
-
#test_create_all_loads ⇒ Object
This method will test the creation of all loads.
Instance Method Details
#test_create_all_loads ⇒ Object
This method will test the creation of all loads.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/openstudio-standards/btap/spaceloads.rb', line 40 def test_create_all_loads() model = OpenStudio::Model::Model.new() people = BTAP::Resources::SpaceLoads::create_people_load(model,"people_load_test") lights = BTAP::Resources::SpaceLoads::create_lighting_load(model,"lights_load_test") electric = BTAP::Resources::SpaceLoads::create_electric_load(model,"electric_load_test") hotwater = BTAP::Resources::SpaceLoads::create_hotwater_load(model,"hotwater_load_test") oa_load = BTAP::Resources::SpaceLoads::create_oa_load(model,"oa_load_test") infiltration_load = BTAP::Resources::SpaceLoads::create_infiltration_load(model,"infiltration_load_test") #Check to see if the objects were really created. assert( !(people.to_People.empty?)) assert( !(lights.to_Lights.empty?)) assert( !(electric.to_ElectricEquipment.empty?)) assert( !(hotwater.to_HotWaterEquipment.empty?)) assert( !(oa_load.to_DesignSpecificationOutdoorAir.empty?)) assert( !(infiltration_load.to_SpaceInfiltrationDesignFlowRate.empty?)) end |