12#include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
14#include <com/sun/star/uno/Reference.hxx>
16#include <cppunit/TestAssert.h>
25 uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(
init(),
27 const sal_Int32 aCount = xSheetConditionalEntries->getCount();
31 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to add new condition", aCount + 1,
32 xSheetConditionalEntries->getCount());
37 uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(
init(),
39 xSheetConditionalEntries->clear();
40 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to clear conditions", sal_Int32(0),
41 xSheetConditionalEntries->getCount());
46 uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(
init(),
48 const sal_Int32 aCount = xSheetConditionalEntries->getCount();
50 xSheetConditionalEntries->removeByIndex(0);
52 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to remove condition", aCount - 1,
53 xSheetConditionalEntries->getCount());
virtual css::uno::Reference< css::uno::XInterface > init()=0
virtual css::uno::Sequence< com::sun::star::beans::PropertyValue > createCondition(const sal_Int32 nr)=0