| 22 | using namespace openstudio::model; |
| 23 | |
| 24 | TEST_F(ModelFixture, AirflowNetwork_EquivalentDuct) { |
| 25 | Model model; |
| 26 | |
| 27 | Node node0(model); |
| 28 | Node node1(model); |
| 29 | |
| 30 | AirflowNetworkDistributionNode afnnode0 = node0.getAirflowNetworkDistributionNode(); |
| 31 | AirflowNetworkDistributionNode afnnode1 = node1.getAirflowNetworkDistributionNode(); |
| 32 | |
| 33 | CoilCoolingDXSingleSpeed coilCooling(model); |
| 34 | |
| 35 | AirflowNetworkEquivalentDuct coolingComponent = coilCooling.getAirflowNetworkEquivalentDuct(0.1, 1.0); |
| 36 | |
| 37 | boost::optional<AirflowNetworkEquivalentDuct> opteqd = coilCooling.airflowNetworkEquivalentDuct(); |
| 38 | |
| 39 | ASSERT_TRUE(opteqd); |
| 40 | EXPECT_EQ(coolingComponent, opteqd.get()); |
| 41 | |
| 42 | AirflowNetworkDistributionLinkage link(model, afnnode0, afnnode1, coolingComponent); |
| 43 | |
| 44 | // Test component here? |
| 45 | |
| 46 | EXPECT_TRUE(link.setComponent(coolingComponent)); |
| 47 | EXPECT_TRUE(link.component().componentModelObject()); |
| 48 | } |
nothing calls this directly
no test coverage detected