public async Task InfoAsync_RedisServer_ServerMethodCorrectResult() { var result = await _redisServer.InfoAsync("section"); Assert.That(result, Is.Null); _serverMock.Verify(x => x.InfoAsync("section", CommandFlags.None), Times.Once); }
public async Task <IGrouping <string, KeyValuePair <string, string> >[]> InfoAsync(string section, CommandFlags flags = CommandFlags.None) { try { return(_redisServer == null ? null : await _redisServer.InfoAsync(section, flags) .ConfigureAwait(false)); } catch (Exception e) { LogError(e); return(null); } }