public void Info_RedisServer_ServerMethodCorrecty() { var result = _redisServer.Info("section"); Assert.That(result, Is.Empty); _serverMock.Verify(x => x.Info("section", CommandFlags.None), Times.Once); }
public IGrouping <string, KeyValuePair <string, string> >[] Info(string section, CommandFlags flags = CommandFlags.None) { try { return(_redisServer?.Info(section, flags)); } catch (Exception e) { LogError(e); return(null); } }