xlnt/tests/test_theme.hpp

23 lines
564 B
C++
Raw Normal View History

2014-05-09 03:32:12 +08:00
#pragma once
#include <iostream>
#include <cxxtest/TestSuite.h>
#include <xlnt/s11n/theme_serializer.hpp>
#include <xlnt/workbook/workbook.hpp>
2015-10-15 06:05:13 +08:00
2014-06-06 04:19:31 +08:00
#include "helpers/path_helper.hpp"
2014-06-11 05:12:15 +08:00
#include "helpers/helper.hpp"
2014-05-09 03:32:12 +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::theme_serializer serializer;
xlnt::workbook wb;
auto content = serializer.write_theme(wb.get_loaded_theme());
TS_ASSERT(Helper::compare_xml(PathHelper::GetDataDirectory() + "/writer/expected/theme1.xml", content));
2014-05-09 03:32:12 +08:00
}
};