You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
749 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RedisStuy;
using StackExchange.Redis;
using Xunit;
namespace RedisStudyTest
{
[Trait("RedisServer", "All")]
public class RedisServerStudyTest
{
private IServer redisServer;
private RedisServerStudy redisServerStudy;
public RedisServerStudyTest()
{
redisServer = RedisHelper.GetDefaultRedisServer();
redisServerStudy = new RedisServerStudy();
}
[Fact]
public void Test()
{
var info= redisServerStudy.RedisInfo();
Assert.NotEmpty(info);
Assert.True(info.Count()>0);
}
}
}