1 #include <gtest/gtest.h>
5 namespace commodconverter {
31 cyclus::Composition::Ptr recipe = cyclus::Composition::CreateFromAtom(v);
35 recipe = cyclus::Composition::CreateFromAtom(v);
65 TestInitState(cloned_fac);
71 TestInitState(src_facility_);
76 EXPECT_NO_THROW(std::string s = src_facility_->str());
82 ASSERT_NO_THROW(src_facility_->Tick());
88 EXPECT_NO_THROW(src_facility_->Tock());
100 #ifndef CYCLUS_AGENT_TESTS_CONNECTED
103 #define CYCLUS_AGENT_TESTS_CONNECTED cyclus_agent_tests_connected
104 #endif // CYCLUS_AGENT_TESTS_CONNECTED
void capacity_(double c)
the maximum amount processed per timestep
void out_recipe_(std::string c)
the out recipe
void in_recipe_(std::string c)
the in recipe
void in_commod_(std::string c)
the in commodity
void TestInitState(commodconverter::CommodConverter *fac)
INSTANTIATE_TEST_CASE_P(CommodConverterFac, FacilityTests,::testing::Values(&CommodConverterConstructor))
void SetUpCommodConverter()
cyclus::Agent * CommodConverterConstructor(cyclus::Context *ctx)
void cost_(double c)
the cost per unit out_commod
void process_time_(int t)
the processing time required for a full process
TEST_F(CommodConverterTest, clone)
static int cyclus_agent_tests_connected
This Facility is intended to convert a resource from one commodity to another.
void out_commod_(std::string c)
the out commodity
CommodConverter * src_facility_
void max_inv_size_(double c)
the maximum amount allowed in inventory