public void ShouldParseNullBulkString()
        {
            var            source = new DummySocketReader("-1\r\n");
            RESPBulkString str    = RESPBulkString.Load(source);

            Assert.AreEqual(null, str.Value);
        }
        public void ShouldParseBulkStringWithLineBreakAtTheEnd()
        {
            var            source = new DummySocketReader("14\r\nHello\r\nworld\r\n\r\n");
            RESPBulkString str    = RESPBulkString.Load(source);

            Assert.AreEqual("Hello\r\nworld\r\n", str.Value);
        }
        public void ShouldParseEmptyBulkString()
        {
            var            source = new DummySocketReader("0\r\n\r\n");
            RESPBulkString str    = RESPBulkString.Load(source);

            Assert.AreEqual(String.Empty, str.Value);
        }
        public void ShouldParseBulkString()
        {
            var            source = new DummySocketReader("11\r\nHello world\r\nblahblahblah");
            RESPBulkString str    = RESPBulkString.Load(source);

            Assert.AreEqual("Hello world", str.Value);
        }