File indexing completed on 2024-11-24 04:43:06

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "confirmbeforedeletingruletest.h"
0008 #include "confirmbeforedeletingrule.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(ConfirmBeforeDeletingRuleTest)
0011 
0012 ConfirmBeforeDeletingRuleTest::ConfirmBeforeDeletingRuleTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void ConfirmBeforeDeletingRuleTest::shouldHaveDefaultValues()
0018 {
0019     ConfirmBeforeDeletingRule r;
0020     QVERIFY(r.pattern().isEmpty());
0021     QVERIFY(!r.isValid());
0022     QCOMPARE(r.ruleType(), ConfirmBeforeDeletingRule::RuleType::Unknown);
0023     // TODO
0024 }
0025 
0026 #include "moc_confirmbeforedeletingruletest.cpp"