< Summary - Helper.Tests

Information
Class: Logging.Helper.LoggerEventArgs
Assembly: Logging.Helper
File(s): D:\a\NuGetPackages\NuGetPackages\src\Helper\Logging.Helper\LoggerEventArgs.cs
Tag: 3_8508158812
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 31
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%22100%
get_Message()100%11100%
get_Severity()100%11100%

File(s)

D:\a\NuGetPackages\NuGetPackages\src\Helper\Logging.Helper\LoggerEventArgs.cs

#LineLine coverage
 1using System;
 2
 3namespace Logging.Helper
 4{
 5  /// <summary>Common event arguments to use when logging a message.</summary>
 6  public class LoggerEventArgs : EventArgs
 7  {
 8    #region Constructor
 9
 10    /// <summary>Initializes a new instance of the EventArgs class.</summary>
 11    /// <param name="message">Message to log.</param>
 12    /// <param name="severity">Event severity, if not provided the severity will be set as Information.</param>
 313    public LoggerEventArgs( string message, LogSeverity severity = LogSeverity.Information )
 314    {
 315      Message = string.IsNullOrEmpty( message ) ? string.Empty : message;
 316      Severity = severity;
 317    }
 18
 19    #endregion
 20
 21    #region Properties
 22
 23    /// <summary>Gets the event message.</summary>
 224    public string Message { get; }
 25
 26    /// <summary>Gets the event severity.</summary>
 227    public LogSeverity Severity { get; }
 28
 29    #endregion
 30  }
 31}