ArchitectureColoredPainting/UnitTest/PaintingTest.cpp

32 lines
810 B
C++
Raw Normal View History

2023-03-07 16:22:44 +08:00
#include "CppUnitTest.h"
#include "PaintingTest.h"
#include <QApplication>
#include "Renderer/Painting/Painting.h"
#include "Renderer/Painting/MaterialStyleStroke.h"
2023-04-25 14:49:26 +08:00
#include "Renderer/Preview/PaintingRenderer.h"
#include <util/PaintingUtil.h>
2023-03-07 16:22:44 +08:00
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)
{
2023-04-25 14:49:26 +08:00
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));
2023-03-07 16:22:44 +08:00
}
};
}