Răsfoiți Sursa

Move StatVfsResponse to tests.

Gert Driesen 8 ani în urmă
părinte
comite
36f94c26cc

+ 35 - 0
src/Renci.SshNet.Tests/Classes/Sftp/SftpStatVfsResponseBuilder.cs

@@ -132,4 +132,39 @@ namespace Renci.SshNet.Tests.Classes.Sftp
             };
         }
     }
+
+    internal class StatVfsResponse : SftpExtendedReplyResponse
+    {
+        public SftpFileSytemInformation Information { get; set; }
+
+        public StatVfsResponse(uint protocolVersion)
+            : base(protocolVersion)
+        {
+        }
+
+        protected override void LoadData()
+        {
+            base.LoadData();
+
+            Information = new SftpFileSytemInformation(ReadUInt64(), // FileSystemBlockSize
+                                                        ReadUInt64(), // BlockSize
+                                                        ReadUInt64(), // TotalBlocks
+                                                        ReadUInt64(), // FreeBlocks
+                                                        ReadUInt64(), // AvailableBlocks
+                                                        ReadUInt64(), // TotalNodes
+                                                        ReadUInt64(), // FreeNodes
+                                                        ReadUInt64(), // AvailableNodes
+                                                        ReadUInt64(), // Sid
+                                                        ReadUInt64(), // Flags
+                                                        ReadUInt64()  // MaxNameLenght
+                                                        );
+        }
+
+        protected override void SaveData()
+        {
+            base.SaveData();
+
+            Information.SaveData(DataStream);
+        }
+    }
 }

+ 0 - 1
src/Renci.SshNet/Renci.SshNet.csproj

@@ -417,7 +417,6 @@
     <Compile Include="Sftp\Responses\SftpResponse.cs" />
     <Compile Include="Sftp\Responses\SftpStatusResponse.cs" />
     <Compile Include="Sftp\Responses\SftpVersionResponse.cs" />
-    <Compile Include="Sftp\Responses\StatVfsResponse.cs" />
     <Compile Include="Sftp\SftpCloseAsyncResult.cs" />
     <Compile Include="Sftp\SftpDownloadAsyncResult.cs" />
     <Compile Include="Sftp\SftpFile.cs" />

+ 0 - 37
src/Renci.SshNet/Sftp/Responses/StatVfsResponse.cs

@@ -1,37 +0,0 @@
-namespace Renci.SshNet.Sftp.Responses
-{
-    internal class StatVfsResponse : SftpExtendedReplyResponse
-    {
-        public SftpFileSytemInformation Information { get; set; }
-
-        public StatVfsResponse(uint protocolVersion)
-            : base(protocolVersion)
-        {
-        }
-
-        protected override void LoadData()
-        {
-            base.LoadData();
-
-            Information = new SftpFileSytemInformation(ReadUInt64(), // FileSystemBlockSize
-                                                       ReadUInt64(), // BlockSize
-                                                       ReadUInt64(), // TotalBlocks
-                                                       ReadUInt64(), // FreeBlocks
-                                                       ReadUInt64(), // AvailableBlocks
-                                                       ReadUInt64(), // TotalNodes
-                                                       ReadUInt64(), // FreeNodes
-                                                       ReadUInt64(), // AvailableNodes
-                                                       ReadUInt64(), // Sid
-                                                       ReadUInt64(), // Flags
-                                                       ReadUInt64()  // MaxNameLenght
-                                                       );
-        }
-
-        protected override void SaveData()
-        {
-            base.SaveData();
-
-            Information.SaveData(DataStream);
-        }
-    }
-}