mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
26 lines
617 B
C++
26 lines
617 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
#include <xlnt/xlnt.hpp>
|
|
#include "helpers/path_helper.hpp"
|
|
|
|
class test_theme : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
void test_write_theme()
|
|
{
|
|
TS_SKIP("");
|
|
auto content = xlnt::writer::write_theme();
|
|
|
|
std::string comparison_file = PathHelper::GetDataDirectory() + "/writer/expected/theme1.xml";
|
|
std::ifstream t(comparison_file);
|
|
std::stringstream buffer;
|
|
buffer << t.rdbuf();
|
|
std::string expected = buffer.str();
|
|
|
|
TS_ASSERT_EQUALS(buffer.str(), content);
|
|
}
|
|
};
|