< Summary

Information
Class: Renci.SshNet.Messages.Transport.ServiceAcceptMessage
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Transport\ServiceAcceptMessage.cs
Line coverage
77%
Covered lines: 7
Uncovered lines: 2
Coverable lines: 9
Total lines: 43
Line coverage: 77.7%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ServiceName()100%1100%
LoadData()100%1100%
SaveData()100%10%
Process(...)100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Transport\ServiceAcceptMessage.cs

#LineLine coverage
 1using System;
 2using Renci.SshNet.Common;
 3
 4namespace Renci.SshNet.Messages.Transport
 5{
 6    /// <summary>
 7    /// Represents SSH_MSG_SERVICE_ACCEPT message.
 8    /// </summary>
 9    [Message("SSH_MSG_SERVICE_ACCEPT", MessageNumber)]
 10    public class ServiceAcceptMessage : Message
 11    {
 12        internal const byte MessageNumber = 6;
 13
 14        /// <summary>
 15        /// Gets the name of the service.
 16        /// </summary>
 17        /// <value>
 18        /// The name of the service.
 19        /// </value>
 181320        public ServiceName ServiceName { get; private set; }
 21
 22        /// <summary>
 23        /// Called when type specific data need to be loaded.
 24        /// </summary>
 25        protected override void LoadData()
 181326        {
 181327            ServiceName = ReadBinary().ToServiceName();
 181328        }
 29
 30        /// <summary>
 31        /// Called when type specific data need to be saved.
 32        /// </summary>
 33        protected override void SaveData()
 034        {
 035            throw new NotImplementedException();
 36        }
 37
 38        internal override void Process(Session session)
 181339        {
 181340            session.OnServiceAcceptReceived(this);
 181341        }
 42    }
 43}