12#include <com/sun/star/sheet/XScenario.hpp>
13#include <com/sun/star/table/CellRangeAddress.hpp>
14#include <com/sun/star/uno/Reference.hxx>
15#include <com/sun/star/uno/Sequence.hxx>
17#include <cppunit/TestAssert.h>
20using namespace css::uno;
27 CPPUNIT_ASSERT_MESSAGE(
"Sheet is not a Scenario sheet", xScenario->getIsScenario());
29 uno::Sequence<table::CellRangeAddress> aCellRangeAddr(1);
30 xScenario->addRanges(aCellRangeAddr);
33 CPPUNIT_ASSERT_MESSAGE(
"Unable add and apply ranges", xScenario->getIsScenario());
34 CPPUNIT_ASSERT_MESSAGE(
"Unable execute getScenarioComment()",
35 !xScenario->getScenarioComment().isEmpty());
37 xScenario->setScenarioComment(
"Test");
38 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable execute setScenarioComment()", OUString(
"Test"),
39 xScenario->getScenarioComment());
virtual css::uno::Reference< css::uno::XInterface > getScenarioSpreadsheet()=0