19 #include <boost/test/unit_test.hpp>
26 BOOST_AUTO_TEST_SUITE(physical)
33 BOOST_REQUIRE(instancePtr.get() != 0);
41 BOOST_REQUIRE(port1Ptr.get() != 0);
42 BOOST_REQUIRE(port2Ptr.get() != 0);
47 BOOST_CHECK(port1Ptr->getInstancePtr().lock() == instancePtr);
48 BOOST_CHECK(port1Ptr->getPinName() == pin);
52 BOOST_CHECK(*port1Ptr == *port2Ptr);
55 BOOST_AUTO_TEST_SUITE_END()
static PortSharedPtr newPortPtr(const string &inName, InstanceSharedPtr inInstancePtr, const string &inPinName)
Create and return a new Port shared pointer.
boost::shared_ptr< Port > PortSharedPtr
Shared pointer encapsulation of a Port.
BOOST_AUTO_TEST_CASE(XdlUnpackUnitTest)
Unit test for the XdlUnpack class.
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.
Header for the Pip class.
Header for the Factory class.