public void ConfigGet_RedisServer_ServerMethodCorrectResult() { var result = _redisServer.ConfigGet("pattern*"); Assert.That(result.First() .Key, Is.EqualTo("config1")); Assert.That(result.First() .Value, Is.EqualTo("abcdefgh")); _serverMock.Verify(x => x.ConfigGet("pattern*", CommandFlags.None), Times.Once); }
public KeyValuePair <string, string>[] ConfigGet(string pattern = default, CommandFlags flags = CommandFlags.None) { try { return(_redisServer?.ConfigGet(pattern, flags)); } catch (Exception e) { LogError(e); return(null); } }