46 CPPUNIT_ASSERT(pModel != NULL);
47 CPPUNIT_ASSERT(pModel->getQuantityUnitEnum() ==
CModel::mMol);
48 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::ml);
49 CPPUNIT_ASSERT(pModel->getTimeUnitEnum() ==
CModel::s);
50 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
51 const CCompartment* pCompartment = pModel->getCompartments()[0];
52 CPPUNIT_ASSERT(pCompartment != NULL);
54 CPPUNIT_ASSERT(pModel->getMetabolites().size() == 2);
55 const CMetab* pB = pModel->getMetabolites()[1];
56 CPPUNIT_ASSERT(pB != NULL);
58 CMetab* pA = pModel->getMetabolites()[0];
59 CPPUNIT_ASSERT(pA != NULL);
62 CPPUNIT_ASSERT(pExpr != NULL);
64 CPPUNIT_ASSERT(pNode != NULL);
66 CPPUNIT_ASSERT(pDelayNode != NULL);
68 CPPUNIT_ASSERT(pObjectNode != NULL);
70 CPPUNIT_ASSERT(!objectCN.empty());
71 std::vector<CCopasiContainer*> listOfContainers;
72 listOfContainers.push_back(pModel);
74 CPPUNIT_ASSERT(pObject != NULL);
76 CPPUNIT_ASSERT(pObject->
getObjectName() == std::string(
"Concentration"));
79 CPPUNIT_ASSERT(pNumberNode != NULL);
81 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 0.5) / 0.5) < 1e-3);
83 CPPUNIT_ASSERT(pNumberNode->getSibling() == NULL);
85 CPPUNIT_ASSERT(pModel->getModelValues().size() == 1);
86 const CModelValue* pModelValue = pModel->getModelValues()[0];
87 CPPUNIT_ASSERT(pModelValue != NULL);
89 CPPUNIT_ASSERT(pModel->getReactions().size() == 0);
93 std::string s = message.getText();
94 CPPUNIT_ASSERT(!s.empty());
95 CPPUNIT_ASSERT(s.find(std::string(
"COPASI does not support time delays. Calculations on this model will most likely lead to unusable results.")) != std::string::npos);
CCopasiNode< Data > * getSibling()
const std::string & getObjectName() const
const CRegisteredObjectName & getObjectCN() const
static CCopasiDataModel * pCOPASIDATAMODEL
static const char * MODEL_STRING
static Type subType(const Type &type)
static CCopasiMessage getLastMessage()
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