< Summary

Information
Class: Renci.SshNet.Common.AuthenticationEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationEventArgs.cs
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 24
Line coverage: 80%
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
.ctor(...)100%1100%
get_Username()100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationEventArgs.cs

#LineLine coverage
 1using System;
 2
 3namespace Renci.SshNet.Common
 4{
 5    /// <summary>
 6    /// Base class for authentication events.
 7    /// </summary>
 8    public abstract class AuthenticationEventArgs : EventArgs
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="AuthenticationEventArgs"/> class.
 12        /// </summary>
 13        /// <param name="username">The username.</param>
 914        protected AuthenticationEventArgs(string username)
 915        {
 916            Username = username;
 917        }
 18
 19        /// <summary>
 20        /// Gets the username.
 21        /// </summary>
 022        public string Username { get; }
 23    }
 24}