19 #include <boost/test/unit_test.hpp>
26 BOOST_AUTO_TEST_SUITE(physical)
40 modulePtr, instancePtr);
42 modulePtr, instancePtr);
43 BOOST_REQUIRE(instanceReference1Ptr != 0);
44 BOOST_REQUIRE(instanceReference2Ptr != 0);
50 BOOST_CHECK(*(instanceReference1Ptr->getInstancePtr().lock()) == *instancePtr);
51 BOOST_CHECK(*(instanceReference1Ptr->getModulePtr().lock()) == *modulePtr);
52 BOOST_CHECK(instanceReference1Ptr->getInstantiationName() == name);
56 BOOST_CHECK(*instanceReference1Ptr == *instanceReference2Ptr);
59 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(XdlUnpackUnitTest)
Unit test for the XdlUnpack class.
boost::shared_ptr< Module > ModuleSharedPtr
Shared pointer encapsulation of a Module.
static InstanceSharedPtr newInstancePtr(const string &inName, const string &inType, const string &inTile, const string &inSite, EInstanceBonding inBonding=eInstanceBondingUnknown, InstanceReferenceSharedPtr inInstanceReferencePtr=InstanceReferenceSharedPtr())
Construct and return a new Instance shared pointer.
boost::shared_ptr< Instance > InstanceSharedPtr
Shared pointer encapsulation of an Instance.
static ModuleSharedPtr newModulePtr(const string &inName, const string &inAnchor)
Create and return a new Module shared pointer.
Header for the Factory class.
Header for the InstancePin class.
boost::shared_ptr< InstanceReference > InstanceReferenceSharedPtr
Shared pointer encapsulation of an InstanceReference.
static InstanceReferenceSharedPtr newInstanceReferencePtr(const string &inInstantiationName, ModuleSharedPtr inModulePtr, InstanceSharedPtr inInstancePtr)
Create and return a new InstanceReference shared pointer.