9void GrowthRegionTests::SetUp() {
10 ctx =
new cyclus::Context(&ti, &rec);
12 commodity_name =
"commod";
13 demand_type =
"linear";
14 demand_params =
"5 5";
19void GrowthRegionTests::TearDown() {
25bool GrowthRegionTests::ManagesCommodity(cyclus::toolkit::Commodity& commodity) {
26 return region->sdmanager()->ManagesCommodity(commodity);
30TEST_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));
40cyclus::Agent* GrowthRegionConstructor(cyclus::Context* ctx) {
45#ifndef CYCLUS_AGENT_TESTS_CONNECTED
48#define CYCLUS_AGENT_TESTS_CONNECTED cyclus_agent_tests_connected
53 Values(&GrowthRegionConstructor));
55 Values(&GrowthRegionConstructor));
static int cyclus_agent_tests_connected
INSTANTIATE_TEST_SUITE_P(DeployInst, InstitutionTests, Values(&DeployInstitutionConstructor))
This region determines if there is a need to meet a certain capacity (as defined via input) at each t...
TEST_F(EnrichmentTest, RequestQty)