public void When_parsing_a_Redis_null_response() { const string replyString = "$-1"; var stream = new MemoryStream(replyString.ToBytes()); reply = new BulkReplyParser().Parse(stream); }
public void When_parsing_a_successful_response() { const string replyString = "$6\r\nfoobar\r\n"; var stream = new MemoryStream(replyString.ToBytes()); reply = new BulkReplyParser().Parse(stream); }
public void Should_return_a_null_reply() { const string replyString = "$-1"; var stream = new MemoryStream(replyString.ToBytes()); reply = new BulkReplyParser().Parse(stream); reply.Value.ShouldBeNull(); }
public BulkReplyInfo(BulkReply reply) { _reply = reply; }