mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
30 lines
622 B
C++
30 lines
622 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
#include <xlnt/xlnt.h>
|
|
#include "PathHelper.h"
|
|
|
|
class ThemeTestSuite : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
ThemeTestSuite()
|
|
{
|
|
|
|
}
|
|
|
|
void test_write_theme()
|
|
{
|
|
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);
|
|
}
|
|
};
|