diff options
Diffstat (limited to 'tests/net/smtp/SMTPCommandTest.cpp')
-rw-r--r-- | tests/net/smtp/SMTPCommandTest.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/net/smtp/SMTPCommandTest.cpp b/tests/net/smtp/SMTPCommandTest.cpp index ce9e7ce5..9a2c90fc 100644 --- a/tests/net/smtp/SMTPCommandTest.cpp +++ b/tests/net/smtp/SMTPCommandTest.cpp @@ -41,6 +41,8 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VMIME_TEST(testMAIL) VMIME_TEST(testMAIL_Encoded) VMIME_TEST(testMAIL_UTF8) + VMIME_TEST(testMAIL_SIZE) + VMIME_TEST(testMAIL_SIZE_UTF8) VMIME_TEST(testRCPT) VMIME_TEST(testRCPT_Encoded) VMIME_TEST(testRCPT_UTF8) @@ -127,6 +129,24 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VASSERT_EQ("Text", "MAIL FROM:<mailtest@例え.テスト> SMTPUTF8", cmd->getText()); } + void testMAIL_SIZE() + { + vmime::ref <SMTPCommand> cmd = SMTPCommand::MAIL + (vmime::mailbox("[email protected]"), false, 123456789); + + VASSERT_NOT_NULL("Not null", cmd); + VASSERT_EQ("Text", "MAIL FROM:<[email protected]> SIZE=123456789", cmd->getText()); + } + + void testMAIL_SIZE_UTF8() + { + vmime::ref <SMTPCommand> cmd = SMTPCommand::MAIL + (vmime::mailbox(vmime::emailAddress("mailtest", "例え.テスト")), true, 123456789); + + VASSERT_NOT_NULL("Not null", cmd); + VASSERT_EQ("Text", "MAIL FROM:<mailtest@例え.テスト> SMTPUTF8 SIZE=123456789", cmd->getText()); + } + void testRCPT() { vmime::ref <SMTPCommand> cmd = SMTPCommand::RCPT(vmime::mailbox("[email protected]"), false); |