@@ -116,6 +116,28 @@ TEST_F(EnergyPlusFixture, FluidProperties_GetSpecificHeatGlycol)
116116 EXPECT_NEAR (4137 , fluid->getSpecificHeat (*state, 125.0 , " UnitTest" ), 0.01 );
117117}
118118
119+ TEST_F (EnergyPlusFixture, FluidProperties_GetViscosityGlycolOutOfRangeWarnings)
120+ {
121+ std::string const idf_objects = delimited_string ({" FluidProperties:GlycolConcentration," ,
122+ " GLHXFluid, !- Name" ,
123+ " PropyleneGlycol, !- Glycol Type" ,
124+ " , !- User Defined Glycol Name" ,
125+ " 0.3; !- Glycol Concentration" ,
126+ " " });
127+
128+ ASSERT_TRUE (process_idf (idf_objects));
129+ EXPECT_FALSE (has_err_output ());
130+
131+ state->init_state (*state);
132+ auto *fluid = Fluid::GetGlycol (*state, " GLHXFLUID" );
133+
134+ fluid->getViscosity (*state, -100.0 , " UnitTest" );
135+ EXPECT_TRUE (compare_err_stream_substring (" Temperature is out of range (too low) for fluid [GLHXFLUID] viscosity **" , true ));
136+
137+ fluid->getViscosity (*state, 200.0 , " UnitTest" );
138+ EXPECT_TRUE (compare_err_stream_substring (" Temperature is out of range (too high) for fluid [GLHXFLUID] viscosity **" , true ));
139+ }
140+
119141TEST_F (EnergyPlusFixture, FluidProperties_InterpValuesForGlycolConc)
120142{
121143 // Test fluid property interpolations with only one concentration
0 commit comments