Commit 252baad0 authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest

parent ad8892fd
......@@ -19,7 +19,7 @@
*/
#include "vcardlinetest.h"
#include "vcardline.h"
#include <QTest>
VCardLineTest::VCardLineTest(QObject *parent)
......@@ -33,4 +33,13 @@ VCardLineTest::~VCardLineTest()
}
void VCardLineTest::shouldHaveDefaultValue()
{
KContacts::VCardLine line;
QVERIFY(line.identifier().isEmpty());
QVERIFY(line.group().isEmpty());
QVERIFY(line.parameterList().isEmpty());
QVERIFY(line.value().isNull());
}
QTEST_MAIN(VCardLineTest)
......@@ -30,6 +30,8 @@ class VCardLineTest : public QObject
public:
explicit VCardLineTest(QObject *parent = Q_NULLPTR);
~VCardLineTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // VCARDLINETEST_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment