32 lines
810 B
C++
32 lines
810 B
C++
#include "CppUnitTest.h"
|
|
#include "PaintingTest.h"
|
|
#include <QApplication>
|
|
#include "Renderer/Painting/Painting.h"
|
|
#include "Renderer/Painting/MaterialStyleStroke.h"
|
|
#include "Renderer/Preview/PaintingRenderer.h"
|
|
#include <util/PaintingUtil.h>
|
|
|
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
|
using namespace Renderer;
|
|
|
|
namespace UnitTest
|
|
{
|
|
TEST_CLASS(PaintingTest)
|
|
{
|
|
private:
|
|
char* argv[1];
|
|
int argc;
|
|
public:
|
|
PaintingTest() :argv{ (char*)"" }, argc(1) {}
|
|
|
|
TEST_METHOD(TestBothSidesRound)
|
|
{
|
|
QApplication app(argc, argv);
|
|
auto painting = PaintingUtil::transfromToPainting("E:\\3D Objects\\dougong\\paintings\\Test1\\Test1.json");
|
|
PaintingRenderer::instance().exportPainting("E:\\3D Objects\\dougong\\paintings\\Test1\\Test1.png", painting, QSize(5910, 10940));
|
|
}
|
|
};
|
|
|
|
|
|
}
|