public void ReadMultiLineResponseInBatch() { StubChannelResponse("200-bla\r\n 300 test\r\n200 OK\r\n"); comm.AttachToChannel(channel); FtpServerResponse response = comm.ReadResponse(); Assert.AreEqual((int)FtpReturnCode.CommandOk, response.ReturnCode); Assert.AreEqual("bla", response.Message); }
public void ReadSingleLineResponse() { StubChannelResponse("200 bla\r\n"); comm.AttachToChannel(channel); FtpServerResponse response = comm.ReadResponse(); Assert.AreEqual((int)FtpReturnCode.CommandOk, response.ReturnCode); Assert.AreEqual("bla", response.Message); }