xlnt/source/workbook/tests/test_theme.hpp

23 lines
565 B
C++
Raw Normal View History

2014-05-08 15:32:12 -04:00
#pragma once
#include <iostream>
#include <cxxtest/TestSuite.h>
2015-11-01 12:31:29 -05:00
#include <xlnt/serialization/theme_serializer.hpp>
#include <xlnt/workbook/workbook.hpp>
2015-10-14 18:05:13 -04:00
2014-06-05 16:19:31 -04:00
#include "helpers/path_helper.hpp"
2014-06-10 17:12:15 -04:00
#include "helpers/helper.hpp"
2014-05-08 15:32:12 -04:00
2014-06-05 16:19:31 -04:00
class test_theme : public CxxTest::TestSuite
2014-05-08 15:32:12 -04:00
{
public:
void test_write_theme()
{
xlnt::workbook wb;
2015-10-30 18:54:04 -04:00
xlnt::theme_serializer serializer;
auto xml = serializer.write_theme(wb.get_loaded_theme());
TS_ASSERT(Helper::compare_xml(PathHelper::GetDataDirectory() + "/writer/expected/theme1.xml", xml));
2014-05-08 15:32:12 -04:00
}
};