Class: BTAP::Resources::SpaceTypes::SpaceLoadsTests
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- BTAP::Resources::SpaceTypes::SpaceLoadsTests
- Defined in:
- lib/openstudio-standards/btap/spacetypes.rb
Instance Method Summary collapse
-
#test_create_all_loads ⇒ Object
This method will take 0 variables and tests that the loads will be created correctly.
Instance Method Details
#test_create_all_loads ⇒ Object
This method will take 0 variables and tests that the loads will be created correctly.
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/openstudio-standards/btap/spacetypes.rb', line 34 def test_create_all_loads() model = OpenStudio::Model::Model.new() people_load = BTAP::Resources::SpaceLoads::create_people_load(model,"people_load_test") lighting_load = BTAP::Resources::SpaceLoads::create_lighting_load(model,"lights_load_test") electric_load = BTAP::Resources::SpaceLoads::create_electric_load(model,"electric_load_test") hotwater_load = 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") default_schedule_set = nil #Check to see if the objects were really created. space_type = BTAP::Resources::SpaceTypes::create_space_type(model,"space type test",default_schedule_set,people_load,lighting_load,electric_load,hotwater_load,oa_load,infiltration_load) assert( !(space_type.to_SpaceType.empty?)) end |