public void TestDump() { using (var mock = new FakeRedisSocket("$4\r\ntest\r\n")) using (var redis = new PoolRedisClient(mock, new DnsEndPoint("fakehost", 9999))) { Assert.Equal("test", Encoding.ASCII.GetString(redis.Dump("test"))); Assert.Equal("*2\r\n$4\r\nDUMP\r\n$4\r\ntest\r\n", mock.GetMessage()); } }