Files
lcd-image-converter/tests/parts/testtemplateoptions.cpp
Vladimir a743565796 Apply formatting
find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i
2025-01-13 01:23:52 +05:00

32 lines
795 B
C++

#include "testtemplateoptions.h"
#include "templateoptions.h"
TestTemplateOptions::TestTemplateOptions(QObject* parent) : QObject(parent) {}
void TestTemplateOptions::initTestCase() { this->mOptions = new Settings::Presets::TemplateOptions(this); }
void TestTemplateOptions::image()
{
// 1
this->mOptions->setImage("test1");
QCOMPARE(this->mOptions->image(), QString("test1"));
// 2
this->mOptions->setImage("test2");
QCOMPARE(this->mOptions->image(), QString("test2"));
}
void TestTemplateOptions::font()
{
// 1
this->mOptions->setFont("test3");
QCOMPARE(this->mOptions->font(), QString("test3"));
// 2
this->mOptions->setFont("test4");
QCOMPARE(this->mOptions->font(), QString("test4"));
}
void TestTemplateOptions::cleanupTestCase() { delete this->mOptions; }