< Summary

Information
Class: Renci.SshNet.Messages.Authentication.InformationResponseMessage
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Authentication\InformationResponseMessage.cs
Line coverage
76%
Covered lines: 13
Uncovered lines: 4
Coverable lines: 17
Total lines: 63
Line coverage: 76.4%
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

MethodBranch coverage Cyclomatic complexity Line coverage
get_Responses()100%1100%
get_BufferCapacity()100%1100%
.ctor()100%1100%
LoadData()100%10%
SaveData()100%2100%
Process(...)100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Authentication\InformationResponseMessage.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3
 4namespace Renci.SshNet.Messages.Authentication
 5{
 6    /// <summary>
 7    /// Represents SSH_MSG_USERAUTH_INFO_RESPONSE message.
 8    /// </summary>
 9    [Message("SSH_MSG_USERAUTH_INFO_RESPONSE", 61)]
 10    internal sealed class InformationResponseMessage : Message
 11    {
 12        /// <summary>
 13        /// Gets authentication responses.
 14        /// </summary>
 3315        public List<string> Responses { get; private set; }
 16
 17        /// <summary>
 18        /// Gets the size of the message in bytes.
 19        /// </summary>
 20        /// <value>
 21        /// <c>-1</c> to indicate that the size of the message cannot be determined,
 22        /// or is too costly to calculate.
 23        /// </value>
 24        protected override int BufferCapacity
 25        {
 2726            get { return -1; }
 27        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the <see cref="InformationResponseMessage"/> class.
 31        /// </summary>
 932        public InformationResponseMessage()
 933        {
 934            Responses = new List<string>();
 935        }
 36
 37        /// <summary>
 38        /// Called when type specific data need to be loaded.
 39        /// </summary>
 40        protected override void LoadData()
 041        {
 042            throw new NotImplementedException();
 43        }
 44
 45        /// <summary>
 46        /// Called when type specific data need to be saved.
 47        /// </summary>
 48        protected override void SaveData()
 949        {
 950            Write((uint) Responses.Count);
 51
 3952            foreach (var response in Responses)
 653            {
 654                Write(response);
 655            }
 956        }
 57
 58        internal override void Process(Session session)
 059        {
 060            throw new NotImplementedException();
 61        }
 62    }
 63}