xlnt/tests/test_theme.hpp
2014-06-05 17:42:15 -04:00

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);
}
};