public void Can_Execute_PONG_Command() { var factory = new RedisConnectionFactory(redis_connection); using var connection = factory.Open(); var command = RedisCommand.Create(RedisCommands.PING); var response = command.Execute(connection); var message = response[0].AsString(); Assert.AreEqual("PONG", message); }
public void Can_Connect() { var factory = new RedisConnectionFactory(redis_connection); using var connection = factory.Open(); var command = RedisCommand.Create(RedisCommands.PING); var response = command.Execute(connection); var message = response[0].AsString(); Assert.IsTrue(connection.IsOpen); Assert.IsTrue(connection.IsActive); Assert.IsFalse(connection.IsPassThrough); }