# < Summary

Information

Class: | Renci.SshNet.MessageEventArgs<T>
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\MessageEventArgs.cs

Line coverage
75%

Covered lines: | 6
Uncovered lines: | 2
Coverable lines: | 8
Total lines: | 31
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

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_Message() | 100% | 1 | 100%
.ctor(...) | 50% | 2 | 71.42%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\MessageEventArgs.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// Provides data for message events.`
|  | `7` |  | `/// </summary>`
|  | `8` |  | `/// <typeparam name="T">Message type.</typeparam>`
|  | `9` |  | `public class MessageEventArgs<T> : EventArgs`
|  | `10` |  | `{`
|  | `11` |  | `/// <summary>`
|  | `12` |  | `/// Gets the message.`
|  | `13` |  | `/// </summary>`
| 160603 | `14` |  | `public T Message { get; private set; }`
|  | `15` |  | ``
|  | `16` |  | `/// <summary>`
|  | `17` |  | `/// Initializes a new instance of the <see cref="MessageEventArgs{T}"/> class.`
|  | `18` |  | `/// </summary>`
|  | `19` |  | `/// <param name="message">The message.</param>`
|  | `20` |  | `/// <exception cref="ArgumentNullException"><paramref name="message"/> is <see langword="null"/>.</exception>`
| 52137 | `21` |  | `public MessageEventArgs(T message)`
| 52137 | `22` |  | `{`
| 52137 | `23` |  | `if (message is null)`
| 0 | `24` |  | `{`
| 0 | `25` |  | `throw new ArgumentNullException(nameof(message));`
|  | `26` |  | `}`
|  | `27` |  | ``
| 52137 | `28` |  | `Message = message;`
| 52137 | `29` |  | `}`
|  | `30` |  | `}`
|  | `31` |  | `}`

# Methods/Properties

get_Message()
.ctor(T)