xlnt/source/workbook/tests/test_theme.hpp

23 lines
495 B
C++
Raw Normal View History

2014-05-09 03:32:12 +08:00
#pragma once
#include <iostream>
#include <cxxtest/TestSuite.h>
#include <helpers/path_helper.hpp>
#include <helpers/xml_helper.hpp>
#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()
{
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
}
};