Commit c0193473 authored by Laurent Montel's avatar Laurent Montel 😁

Add more unittest

parent 2e28bb34
......@@ -91,6 +91,8 @@ void ComposerTest::testAutoSave()
composer->start();
QVERIFY( composer->finished() );
QCOMPARE( composer->resultMessages().size(), 1 );
delete composer;
composer = 0;
}
void ComposerTest::testNonAsciiHeaders()
......@@ -148,6 +150,8 @@ void ComposerTest::testBug271192()
const KMime::Message::Ptr message = composer->resultMessages().first();
QCOMPARE( message->to()->displayNames().size(), 1 );
QCOMPARE( message->to()->displayNames().first().toUtf8(), displayName.toUtf8() );
delete composer;
composer = 0;
}
void ComposerTest::fillComposerData( Composer* composer )
......
......@@ -34,6 +34,17 @@ void InfoPartTest::shouldHaveDefaultValue()
MessageComposer::InfoPart infopart;
QCOMPARE(infopart.transportId(), 0);
QVERIFY(!infopart.urgent());
QVERIFY(infopart.from().isEmpty());
QVERIFY(infopart.to().isEmpty());
QVERIFY(infopart.cc().isEmpty());
QVERIFY(infopart.bcc().isEmpty());
QVERIFY(infopart.replyTo().isEmpty());
QVERIFY(infopart.subject().isEmpty());
QVERIFY(infopart.fcc().isEmpty());
QVERIFY(infopart.userAgent().isEmpty());
QVERIFY(infopart.inReplyTo().isEmpty());
QVERIFY(infopart.references().isEmpty());
QVERIFY(infopart.extraHeaders().isEmpty());
}
QTEST_KDEMAIN(InfoPartTest, NoGUI)
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