13#include <com/sun/star/drawing/XShapes.hpp>
14#include <com/sun/star/uno/Reference.hxx>
16#include <cppunit/TestAssert.h>
24 uno::Reference<drawing::XShapes> xShapes(
init(), uno::UNO_QUERY_THROW);
26 const sal_Int32 nCountBeforeAdd = xShapes->getCount();
28 const sal_Int32 nCountAfterAdd = xShapes->getCount();
29 CPPUNIT_ASSERT_EQUAL(nCountBeforeAdd + 1, nCountAfterAdd);
32 const sal_Int32 nCountAfterRemove = xShapes->getCount();
33 CPPUNIT_ASSERT_EQUAL(nCountBeforeAdd, nCountAfterRemove);
css::uno::Reference< css::drawing::XShape > m_xShape
virtual css::uno::Reference< css::uno::XInterface > init()=0