< Summary

Information
Class: Renci.SshNet.Common.ChannelDataEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\ChannelDataEventArgs.cs
Line coverage
75%
Covered lines: 6
Uncovered lines: 2
Coverable lines: 8
Total lines: 32
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)50%271.42%
get_Data()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2
 3namespace Renci.SshNet.Common
 4{
 5    /// <summary>
 6    /// Provides data for <see cref="Channels.Channel.DataReceived"/> event.
 7    /// </summary>
 8    internal class ChannelDataEventArgs : ChannelEventArgs
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="ChannelDataEventArgs"/> class.
 12        /// </summary>
 13        /// <param name="channelNumber">Channel number.</param>
 14        /// <param name="data">Channel data.</param>
 15        /// <exception cref="ArgumentNullException"><paramref name="data"/> is <see langword="null"/>.</exception>
 16        public ChannelDataEventArgs(uint channelNumber, byte[] data)
 3503517            : base(channelNumber)
 3503518        {
 3503519            if (data is null)
 020            {
 021                throw new ArgumentNullException(nameof(data));
 22            }
 23
 3503524            Data = data;
 3503525        }
 26
 27        /// <summary>
 28        /// Gets channel data.
 29        /// </summary>
 3846130        public byte[] Data { get; }
 31    }
 32}