xlnt/source/workbook/tests/test_theme.hpp

23 lines
589 B
C++
Raw Normal View History

2014-05-09 03:32:12 +08:00
#pragma once
#include <iostream>
#include <cxxtest/TestSuite.h>
#include <detail/theme_serializer.hpp>
#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;
2015-10-31 06:54:04 +08:00
xlnt::theme_serializer serializer;
pugi::xml_document xml;
serializer.write_theme(wb.get_loaded_theme(), xml);
TS_ASSERT(xml_helper::compare_xml(path_helper::get_data_directory() + "/writer/expected/theme1.xml", xml));
2014-05-09 03:32:12 +08:00
}
};