public async Task ProcessAsync() { TestMocks mocks = new TestMocks(); RsetVerb verb = new RsetVerb(); await verb.Process(mocks.Connection.Object, new SmtpCommand("RSET")).ConfigureAwait(false); mocks.VerifyWriteResponseAsync(StandardSmtpResponseCode.OK); mocks.Connection.Verify(c => c.AbortMessage()); }
public void Process() { Mocks mocks = new Mocks(); RsetVerb verb = new RsetVerb(); verb.Process(mocks.Connection.Object, new SmtpCommand("RSET")); mocks.VerifyWriteResponse(StandardSmtpResponseCode.OK); mocks.Connection.Verify(c => c.AbortMessage()); }