-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef CYCVT_SRC_ENRICHMENT_TESTS_ | ||
#define CYCVT_SRC_ENRICHMENT_TESTS_ | ||
|
||
#include <gtest/gtest.h> | ||
|
||
#include <boost/shared_ptr.hpp> | ||
|
||
#include "test_context.h" | ||
#include "env.h" | ||
#include "exchange_context.h" | ||
#include "material.h" | ||
|
||
#include "special_enrich.h" | ||
|
||
namespace cycvt { | ||
|
||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
class SEnrichmentTest : public ::testing::Test { | ||
protected: | ||
cyclus::TestContext tc_; | ||
SEnrichment* src_facility; | ||
std::string feed_commod, product_commod, feed_recipe, tails_commod; | ||
cyclus::Composition::Ptr recipe; | ||
TestFacility* trader; | ||
|
||
double feed_assay, tails_assay, inv_size, swu_capacity, max_enrich; | ||
|
||
bool order_prefs; | ||
|
||
double reserves; | ||
|
||
virtual void SetUp(); | ||
virtual void TearDown(); | ||
void InitParameters(); | ||
void SetUpSource(); | ||
cyclus::Material::Ptr GetMat(double qty); | ||
/// @param enr the enrichment percent, i.e. for 5 w/o, enr = 0.05 | ||
cyclus::Material::Ptr GetReqMat(double qty, double enr); | ||
void DoAddMat(cyclus::Material::Ptr mat); | ||
cyclus::Material::Ptr DoRequest(); | ||
cyclus::Material::Ptr DoBid(cyclus::Material::Ptr mat); | ||
cyclus::Material::Ptr DoOffer(cyclus::Material::Ptr mat); | ||
cyclus::Material::Ptr DoEnrich(cyclus::Material::Ptr mat, double qty); | ||
/// @param nreqs the total number of requests | ||
/// @param nvalid the number of requests that are valid | ||
boost::shared_ptr< cyclus::ExchangeContext<cyclus::Material> > | ||
GetContext(int nreqs, int nvalid); | ||
}; | ||
|
||
} // namespace cycvt | ||
|
||
#endif // CYCVT_SRC_ENRICHMENT_FACILITY_TESTS_ |