diff options
Diffstat (limited to 'tests/net/smtp/SMTPCommandTest.cpp')
-rw-r--r-- | tests/net/smtp/SMTPCommandTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/net/smtp/SMTPCommandTest.cpp b/tests/net/smtp/SMTPCommandTest.cpp index d93bc729..ce9e7ce5 100644 --- a/tests/net/smtp/SMTPCommandTest.cpp +++ b/tests/net/smtp/SMTPCommandTest.cpp @@ -46,6 +46,7 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VMIME_TEST(testRCPT_UTF8) VMIME_TEST(testRSET) VMIME_TEST(testDATA) + VMIME_TEST(testBDAT) VMIME_TEST(testNOOP) VMIME_TEST(testQUIT) VMIME_TEST(testWriteToSocket) @@ -168,6 +169,19 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VASSERT_EQ("Text", "DATA", cmd->getText()); } + void testBDAT() + { + vmime::ref <SMTPCommand> cmd1 = SMTPCommand::BDAT(12345, false); + + VASSERT_NOT_NULL("Not null", cmd1); + VASSERT_EQ("Text", "BDAT 12345", cmd1->getText()); + + vmime::ref <SMTPCommand> cmd2 = SMTPCommand::BDAT(67890, true); + + VASSERT_NOT_NULL("Not null", cmd2); + VASSERT_EQ("Text", "BDAT 67890 LAST", cmd2->getText()); + } + void testNOOP() { vmime::ref <SMTPCommand> cmd = SMTPCommand::NOOP(); |