text: /**********************************************************************
   *  Copyright (c) 2008-2016, Alliance for Sustainable Energy.
   *  All rights reserved.
   *
   *  This library is free software; you can redistribute it and/or
   *  modify it under the terms of the GNU Lesser General Public
   *  License as published by the Free Software Foundation; either
   *  version 2.1 of the License, or (at your option) any later version.
   *
   *  This library is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   *  Lesser General Public License for more details.
   *
   *  You should have received a copy of the GNU Lesser General Public
   *  License along with this library; if not, write to the Free Software
   *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
   **********************************************************************/
  
  #include <gtest/gtest.h>
  #include "ModelFixture.hpp"
  #include "../ZoneHVACHighTemperatureRadiant.hpp"
  #include "../ZoneHVACHighTemperatureRadiant_Impl.hpp"
  #include "../Model.hpp"
  #include "../Model_Impl.hpp"
  #include "../ThermalZone.hpp"
  #include "../ThermalZone_Impl.hpp"
  
  using namespace openstudio;
  using namespace openstudio::model;
  
  TEST_F(ModelFixture, ZoneHVACHighTemperatureRadiant_Construct)
  {
    ::testing::FLAGS_gtest_death_test_style = "threadsafe";
  
    ASSERT_EXIT ( 
    {  
      Model m;
      ZoneHVACHighTemperatureRadiant zonehvac(m);
  
      exit(0); 
    } ,
      ::testing::ExitedWithCode(0), "" );
  }
  
  TEST_F(ModelFixture, ZoneHVACHighTemperatureRadiant_AddAndRemove)
  {
    Model m;
    ZoneHVACHighTemperatureRadiant zonehvac(m);
  
    ThermalZone tz(m);
    ASSERT_TRUE(zonehvac.addToThermalZone(tz));
    ASSERT_TRUE(zonehvac.thermalZone());
    ASSERT_EQ(tz,zonehvac.thermalZone().get());
    ASSERT_EQ(1u,tz.equipment().size());
    zonehvac.removeFromThermalZone();
    ASSERT_EQ(0u,tz.equipment().size());
  
    ZoneHVACHighTemperatureRadiant zonehvac2(m);
    zonehvac2.addToThermalZone(tz);
    zonehvac2.remove();
    ASSERT_EQ(0u,tz.equipment().size());
  }
  
  