#include "CppUnitTest.h" #include #include #include "ElementRendererTest.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace UnitTest { TEST_CLASS(ElementRendererTest) { public: TEST_METHOD(TestMethod1) { QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); char arg[] = ""; char* argv[] = { arg }; int argc = 1; QApplication a(argc, argv); TestGLWidget w; w.show(); a.exec(); } }; }