13 commodity = cyclus::toolkit::Commodity(
"commod");
34 ctx_->AddPrototype(
"foop", producer);
35 set<cyclus::toolkit::CommodityProducer*>::iterator it;
36 for (it = src_inst->cyclus::toolkit::CommodityProducerManager::
38 it != src_inst->cyclus::toolkit::CommodityProducerManager::
42 producer->prototype());
48 EXPECT_EQ(src_inst->TotalCapacity(commodity), 0);
49 src_inst->BuildNotify(producer);
50 EXPECT_EQ(src_inst->TotalCapacity(commodity), capacity);
51 src_inst->DecomNotify(producer);
52 EXPECT_EQ(src_inst->TotalCapacity(commodity), 0);
56#ifndef CYCLUS_AGENT_TESTS_CONNECTED
59#define CYCLUS_AGENT_TESTS_CONNECTED cyclus_agent_tests_connected
cyclus::toolkit::Commodity commodity
cycamore::ManagerInst * src_inst
TestProducer(cyclus::Context *ctx)
static int cyclus_agent_tests_connected
cyclus::Agent * ManagerInstitutionConstructor(cyclus::Context *ctx)
TEST_F(ManagerInstTests, producerexists)
INSTANTIATE_TEST_SUITE_P(ManagerInst, InstitutionTests, Values(&ManagerInstitutionConstructor))