2014-05-09 03:32:12 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
|
2016-07-04 07:22:08 +08:00
|
|
|
#include <helpers/path_helper.hpp>
|
2016-07-21 07:04:44 +08:00
|
|
|
#include <helpers/xml_helper.hpp>
|
2015-10-30 11:16:31 +08:00
|
|
|
#include <xlnt/workbook/workbook.hpp>
|
2015-10-15 06:05:13 +08:00
|
|
|
|
2014-06-06 04:19:31 +08:00
|
|
|
class test_theme : public CxxTest::TestSuite
|
2014-05-09 03:32:12 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void test_write_theme()
|
|
|
|
{
|
2015-10-30 11:16:31 +08:00
|
|
|
xlnt::workbook wb;
|
2016-08-05 13:52:05 +08:00
|
|
|
wb.set_theme(xlnt::theme());
|
2016-08-03 12:12:18 +08:00
|
|
|
|
2016-08-05 13:52:05 +08:00
|
|
|
TS_ASSERT(xml_helper::file_matches_workbook_part(
|
|
|
|
path_helper::get_data_directory("writer/expected/theme1.xml"),
|
|
|
|
wb, xlnt::constants::part_theme()));
|
2014-05-09 03:32:12 +08:00
|
|
|
}
|
|
|
|
};
|