public async Task Quit_RespondsWithClosingChannel() { TestMocks mocks = new TestMocks(); QuitVerb quitVerb = new QuitVerb(); await quitVerb.Process(mocks.Connection.Object, new SmtpCommand("QUIT")).ConfigureAwait(false); mocks.VerifyWriteResponse(StandardSmtpResponseCode.ClosingTransmissionChannel); }
public void Quit_RespondsWithClosingChannel() { Mocks mocks = new Mocks(); QuitVerb quitVerb = new QuitVerb(); quitVerb.Process(mocks.Connection.Object, new SmtpCommand("QUIT")); mocks.VerifyWriteResponse(StandardSmtpResponseCode.ClosingTransmissionChannel); }