diff options
Diffstat (limited to 'tests/net/smtp/SMTPCommandTest.cpp')
-rw-r--r-- | tests/net/smtp/SMTPCommandTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/net/smtp/SMTPCommandTest.cpp b/tests/net/smtp/SMTPCommandTest.cpp index 6d466865..9480948c 100644 --- a/tests/net/smtp/SMTPCommandTest.cpp +++ b/tests/net/smtp/SMTPCommandTest.cpp @@ -37,6 +37,7 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VMIME_TEST(testHELO) VMIME_TEST(testEHLO) VMIME_TEST(testAUTH) + VMIME_TEST(testAUTH_InitialResponse) VMIME_TEST(testSTARTTLS) VMIME_TEST(testMAIL) VMIME_TEST(testMAIL_Encoded) @@ -95,6 +96,14 @@ VMIME_TEST_SUITE_BEGIN(SMTPCommandTest) VASSERT_EQ("Text", "AUTH saslmechanism", cmd->getText()); } + void testAUTH_InitialResponse() + { + vmime::shared_ptr <SMTPCommand> cmd = SMTPCommand::AUTH("saslmechanism", "initial-response"); + + VASSERT_NOT_NULL("Not null", cmd); + VASSERT_EQ("Text", "AUTH saslmechanism initial-response", cmd->getText()); + } + void testSTARTTLS() { vmime::shared_ptr <SMTPCommand> cmd = SMTPCommand::STARTTLS(); |