xlnt/source/tests/MetaTestSuite.h

35 lines
768 B
C
Raw Normal View History

2014-05-09 03:32:12 +08:00
#pragma once
#include <iostream>
#include <cxxtest/TestSuite.h>
2014-05-10 03:54:06 +08:00
#include "../xlnt.h"
2014-05-09 03:32:12 +08:00
class MetaTestSuite : public CxxTest::TestSuite
{
public:
MetaTestSuite()
{
}
void test_write_content_types()
{
2014-05-13 01:42:28 +08:00
wb = Workbook();
wb.create_sheet();
wb.create_sheet();
content = write_content_types(wb);
reference_file = os.path.join(DATADIR, "writer", "expected",
"[Content_Types].xml");
assert_equals_file_content(reference_file, content);
2014-05-09 03:32:12 +08:00
}
void test_write_root_rels()
{
2014-05-13 01:42:28 +08:00
wb = Workbook();
content = write_root_rels(wb);
reference_file = os.path.join(DATADIR, "writer", "expected", ".rels");
assert_equals_file_content(reference_file, content);
2014-05-09 03:32:12 +08:00
}
};