9 void GrowthRegionTests::SetUp() {
10 ctx =
new cyclus::Context(&ti, &rec);
12 commodity_name =
"commod";
13 demand_type =
"linear";
14 demand_params =
"5 5";
19 void GrowthRegionTests::TearDown() {
25 bool GrowthRegionTests::ManagesCommodity(cyclus::toolkit::Commodity& commodity) {
26 return region->sdmanager()->ManagesCommodity(commodity);
30 TEST_F(GrowthRegionTests, init) {
31 cyclus::toolkit::Commodity commodity(commodity_name);
32 cyclus::toolkit::ExpFunctionFactory eff;
33 region->sdmanager()->RegisterCommodity(commodity, eff.GetFunctionPtr(
"2.0 4.0"));
34 EXPECT_TRUE(ManagesCommodity(commodity));
40 cyclus::Agent* GrowthRegionConstructor(cyclus::Context* ctx) {
45 #ifndef CYCLUS_AGENT_TESTS_CONNECTED 48 #define CYCLUS_AGENT_TESTS_CONNECTED cyclus_agent_tests_connected 49 #endif // CYCLUS_AGENT_TESTS_CONNECTED 53 Values(&GrowthRegionConstructor));
55 Values(&GrowthRegionConstructor));
56 #endif // CYCLUS_HAS_COIN
This region determines if there is a need to meet a certain capacity (as defined via input) at each t...
INSTANTIATE_TEST_CASE_P(DeployInst, InstitutionTests, Values(&DeployInstitutionConstructor))
static int cyclus_agent_tests_connected
TEST_F(EnrichmentTest, RequestQty)