mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
24 lines
589 B
C++
24 lines
589 B
C++
#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>
|
|
|
|
class test_theme : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
void test_write_theme()
|
|
{
|
|
xlnt::workbook wb;
|
|
xlnt::theme_serializer serializer;
|
|
pugi::xml_document xml;
|
|
serializer.write_theme(wb.get_theme(), xml);
|
|
|
|
TS_ASSERT(xml_helper::file_matches_document(path_helper::get_data_directory("writer/expected/theme1.xml"), xml));
|
|
}
|
|
};
|