54 CPPUNIT_ASSERT(pModel != NULL);
55 CPPUNIT_ASSERT(pModel->getQuantityUnitEnum() ==
CModel::mMol);
56 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::ml);
57 CPPUNIT_ASSERT(pModel->getTimeUnitEnum() ==
CModel::s);
58 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
59 const CCompartment* pCompartment = pModel->getCompartments()[0];
60 CPPUNIT_ASSERT(pCompartment != NULL);
62 CPPUNIT_ASSERT(pModel->getMetabolites().size() == 1);
63 CMetab* pA = pModel->getMetabolites()[0];
64 CPPUNIT_ASSERT(pA != NULL);
69 CPPUNIT_ASSERT(pNode != NULL);
71 CPPUNIT_ASSERT(pChoiceNode != NULL);
73 CPPUNIT_ASSERT(pNode != NULL);
75 CPPUNIT_ASSERT(pLogicalNode != NULL);
78 CPPUNIT_ASSERT(pObjectNode != NULL);
80 CPPUNIT_ASSERT(!objectCN.empty());
81 std::vector<CCopasiContainer*> listOfContainers;
82 listOfContainers.push_back(pModel);
84 CPPUNIT_ASSERT(pObject != NULL);
86 CPPUNIT_ASSERT(pObject->
getObjectName() == std::string(
"Time"));
89 CPPUNIT_ASSERT(pNumberNode != NULL);
91 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 5.0) / 5.0) < 1e-3);
93 CPPUNIT_ASSERT(pNumberNode != NULL);
95 CPPUNIT_ASSERT(pNumberNode->getValue() < 1e-3);
97 CPPUNIT_ASSERT(pNumberNode != NULL);
99 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 10.0) / 10.0) < 1e-3);
101 CPPUNIT_ASSERT(pModel->getModelValues().size() == 0);
102 CPPUNIT_ASSERT(pModel->getReactions().size() == 0);
CCopasiNode< Data > * getSibling()
static CCopasiDataModel * pCOPASIDATAMODEL
const std::string & getObjectName() const
const Type & getType() const
static Type subType(const Type &type)
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
CCopasiNode< Data > * getChild()
CCopasiObject * ObjectFromName(const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &CN) const
CCopasiContainer * getObjectParent() const
static const char * MODEL_STRING