| 12 | using namespace openstudio::model; |
| 13 | |
| 14 | TEST_F(ModelFixture, PythonPluginTrendVariable_GettersSetters) { |
| 15 | Model m; |
| 16 | |
| 17 | PythonPluginVariable pyVar(m); |
| 18 | |
| 19 | PythonPluginTrendVariable pythonPluginTrendVariable(pyVar); |
| 20 | EXPECT_EQ(pyVar, pythonPluginTrendVariable.pythonPluginVariable()); |
| 21 | |
| 22 | pythonPluginTrendVariable.setName("My PythonPluginTrendVariable"); |
| 23 | |
| 24 | // Name of a Python Plugin Variable: Required Object |
| 25 | PythonPluginVariable pyVar2(m); |
| 26 | EXPECT_TRUE(pythonPluginTrendVariable.setPythonPluginVariable(pyVar2)); |
| 27 | EXPECT_EQ(pyVar2, pythonPluginTrendVariable.pythonPluginVariable()); |
| 28 | |
| 29 | // Number of Timesteps to be Logged: Required Integer |
| 30 | EXPECT_TRUE(pythonPluginTrendVariable.setNumberofTimestepstobeLogged(5)); |
| 31 | EXPECT_EQ(5, pythonPluginTrendVariable.numberofTimestepstobeLogged()); |
| 32 | // Bad Value |
| 33 | EXPECT_FALSE(pythonPluginTrendVariable.setNumberofTimestepstobeLogged(-9)); |
| 34 | EXPECT_EQ(5, pythonPluginTrendVariable.numberofTimestepstobeLogged()); |
| 35 | } |
nothing calls this directly
no test coverage detected