public void Time_RedisServer_ServerMethodCorrectResult() { var result = _redisServer.Time(); Assert.That(result, Is.EqualTo(new DateTime(2014, 12, 3, 11, 23, 12))); _serverMock.Verify(x => x.LastSave(CommandFlags.None), Times.Once); }
public DateTime?Time(CommandFlags flags = CommandFlags.None) { try { return(_redisServer?.Time(flags)); } catch (Exception e) { LogError(e); return(null); } }