12#include <com/sun/star/container/XIndexAccess.hpp>
13#include <com/sun/star/sheet/XUniqueCellFormatRangesSupplier.hpp>
15#include <cppunit/TestAssert.h>
24 uno::Reference< sheet::XUniqueCellFormatRangesSupplier > xSupplier(
init(), UNO_QUERY_THROW);
25 uno::Reference< container::XIndexAccess > xIndexAccess = xSupplier->getUniqueCellFormatRanges();
27 auto count = xIndexAccess->getCount();
28 CPPUNIT_ASSERT_MESSAGE(
"No elements found",
count);
30 CPPUNIT_ASSERT_NO_THROW_MESSAGE(OString(
"Unable to access element " + OString::number(
i)).getStr(),
31 xIndexAccess->getByIndex(
i));