From 3ddd05b572f61393b5b7a681d1cdfa30314c5b07 Mon Sep 17 00:00:00 2001
From: bicijinlian <bicijinlian@163.com>
Date: Tue, 19 Jun 2018 20:02:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=8D=E8=83=BD=E8=BF=90?=
 =?UTF-8?q?=E8=A1=8C=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=EF=BC=9ARedisHash?=
 =?UTF-8?q?StudyTest=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B7=B2=E6=8E=92?=
 =?UTF-8?q?=E9=99=A4=E9=A1=B9=E7=9B=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 RedisStudyTest/RedisStudyTest.cs     | 10 ++++------
 RedisStudyTest/RedisStudyTest.csproj |  1 -
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/RedisStudyTest/RedisStudyTest.cs b/RedisStudyTest/RedisStudyTest.cs
index 093130e..0be3440 100644
--- a/RedisStudyTest/RedisStudyTest.cs
+++ b/RedisStudyTest/RedisStudyTest.cs
@@ -14,22 +14,20 @@ namespace RedisStudyTest
 {
     public class RedisStudyTest
     {
-        private IServer redisServer;
-        private RedisServerStudy redisServerStudy;
+        private RedisServerStudy _redisServerStudy;
 
         public RedisStudyTest()
         {
-            redisServer = RedisHelper.GetDefaultRedisServer();
-            redisServerStudy = new RedisServerStudy();
+            _redisServerStudy = new RedisServerStudy();
         }
 
         [Fact]
         public void Test()
         {
-           var info= redisServerStudy.RedisInfo();
+            var info = _redisServerStudy.RedisInfo();
 
             Assert.NotEmpty(info);
-            Assert.True(info.Count()>0);
+            Assert.True(info.Any());
         }
     }
 }
diff --git a/RedisStudyTest/RedisStudyTest.csproj b/RedisStudyTest/RedisStudyTest.csproj
index cbeda78..f59bee6 100644
--- a/RedisStudyTest/RedisStudyTest.csproj
+++ b/RedisStudyTest/RedisStudyTest.csproj
@@ -77,7 +77,6 @@
     <Compile Include="RedisLockStudyTest.cs" />
     <Compile Include="RedisStudyTest.cs" />
     <Compile Include="RedisSortSetStudyTest.cs" />
-    <Compile Include="RedisHashStudyTest.cs" />
     <Compile Include="RedisHelperTest.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="RedisServerStudyTest.cs" />