测试不能运行单元测试:RedisHashStudyTest的问题,已排除项目

master
bicijinlian 7 years ago
parent 0d2c37ebfe
commit 3ddd05b572

@ -14,22 +14,20 @@ namespace RedisStudyTest
{ {
public class RedisStudyTest public class RedisStudyTest
{ {
private IServer redisServer; private RedisServerStudy _redisServerStudy;
private RedisServerStudy redisServerStudy;
public RedisStudyTest() public RedisStudyTest()
{ {
redisServer = RedisHelper.GetDefaultRedisServer(); _redisServerStudy = new RedisServerStudy();
redisServerStudy = new RedisServerStudy();
} }
[Fact] [Fact]
public void Test() public void Test()
{ {
var info= redisServerStudy.RedisInfo(); var info = _redisServerStudy.RedisInfo();
Assert.NotEmpty(info); Assert.NotEmpty(info);
Assert.True(info.Count()>0); Assert.True(info.Any());
} }
} }
} }

@ -77,7 +77,6 @@
<Compile Include="RedisLockStudyTest.cs" /> <Compile Include="RedisLockStudyTest.cs" />
<Compile Include="RedisStudyTest.cs" /> <Compile Include="RedisStudyTest.cs" />
<Compile Include="RedisSortSetStudyTest.cs" /> <Compile Include="RedisSortSetStudyTest.cs" />
<Compile Include="RedisHashStudyTest.cs" />
<Compile Include="RedisHelperTest.cs" /> <Compile Include="RedisHelperTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RedisServerStudyTest.cs" /> <Compile Include="RedisServerStudyTest.cs" />

Loading…
Cancel
Save