< Summary

Information
Class: Amusoft.Toolkit.Threading.Exceptions.TypeMismatchException
Assembly: Amusoft.Toolkit.Threading
File(s): /home/runner/work/Amusoft.Toolkit.Threading/Amusoft.Toolkit.Threading/src/Amusoft.Toolkit.Threading/Exceptions/TypeMismatchException.cs
Tag: 19_10540409038
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 37
Line coverage: 100%
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 Crap Score Cyclomatic complexity Line coverage
get_Actual()100%11100%
get_Expected()100%11100%
get_Identity()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/Amusoft.Toolkit.Threading/Amusoft.Toolkit.Threading/src/Amusoft.Toolkit.Threading/Exceptions/TypeMismatchException.cs

#LineLine coverage
 1using System;
 2
 3namespace Amusoft.Toolkit.Threading.Exceptions;
 4
 5/// <summary>
 6///
 7/// </summary>
 8public class TypeMismatchException : Exception
 9{
 10  /// <summary>
 11  ///
 12  /// </summary>
 113  public Type Actual { get; }
 14
 15  /// <summary>
 16  ///
 17  /// </summary>
 118  public Type Expected { get; }
 19
 20  /// <summary>
 21  ///
 22  /// </summary>
 123  public LoaderIdentity Identity { get; }
 24
 25  /// <summary>
 26  ///
 27  /// </summary>
 28  /// <param name="actual"></param>
 29  /// <param name="expected"></param>
 30  /// <param name="identity"></param>
 131  public TypeMismatchException(Type actual, Type expected, LoaderIdentity identity)
 32  {
 133    Actual = actual;
 134    Expected = expected;
 135    Identity = identity;
 136  }
 37}