# < Summary

Information

Class: | Renci.SshNet.Sftp.Responses.SftpVersionResponse
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Responses\SftpVersionResponse.cs

Line coverage
100%

Covered lines: | 16
Uncovered lines: | 0
Coverable lines: | 16
Total lines: | 36
Line coverage: | 100%

Branch coverage
100%

Covered branches: | 2
Total branches: | 2
Branch coverage: | 100%

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_SftpMessageType() | 100% | 1 | 100%
get_Version() | 100% | 1 | 100%
get_Extentions() | 100% | 1 | 100%
LoadData() | 100% | 1 | 100%
SaveData() | 100% | 2 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Responses\SftpVersionResponse.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System.Collections.Generic;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Sftp.Responses`
|  | `4` |  | `{`
|  | `5` |  | `internal sealed class SftpVersionResponse : SftpMessage`
|  | `6` |  | `{`
|  | `7` |  | `public override SftpMessageTypes SftpMessageType`
|  | `8` |  | `{`
| 72 | `9` |  | `get { return SftpMessageTypes.Version; }`
|  | `10` |  | `}`
|  | `11` |  | ``
| 1330 | `12` |  | `public uint Version { get; set; }`
|  | `13` |  | ``
| 1354 | `14` |  | `public IDictionary<string, string> Extentions { get; set; }`
|  | `15` |  | ``
|  | `16` |  | `protected override void LoadData()`
| 641 | `17` |  | `{`
| 641 | `18` |  | `base.LoadData();`
|  | `19` |  | ``
| 641 | `20` |  | `Version = ReadUInt32();`
| 641 | `21` |  | `Extentions = ReadExtensionPair();`
| 641 | `22` |  | `}`
|  | `23` |  | ``
|  | `24` |  | `protected override void SaveData()`
| 24 | `25` |  | `{`
| 24 | `26` |  | `base.SaveData();`
|  | `27` |  | ``
| 24 | `28` |  | `Write(Version);`
|  | `29` |  | ``
| 24 | `30` |  | `if (Extentions != null)`
| 24 | `31` |  | `{`
| 24 | `32` |  | `Write(Extentions);`
| 24 | `33` |  | `}`
| 24 | `34` |  | `}`
|  | `35` |  | `}`
|  | `36` |  | `}`

# Methods/Properties

get_SftpMessageType()
get_Version()
get_Extentions()
LoadData()
SaveData()