< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.Tokens.AudienceUriValidationFailedException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Tokens/AudienceUriValidationFailedException.cs
Line coverage
25%
Covered lines: 2
Uncovered lines: 6
Coverable lines: 8
Total lines: 47
Line coverage: 25%
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 NPath complexity Sequence coverage
.ctor()100%110%
.ctor(...)100%11100%
.ctor(...)100%110%
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Tokens/AudienceUriValidationFailedException.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5using System.Runtime.Serialization;
 6
 7namespace CoreWCF.IdentityModel.Tokens
 8{
 9    /// <summary>
 10    /// Throw this exception a received Security token failed Audience Uri validation.
 11    /// </summary>
 12    [Serializable]
 13    public class AudienceUriValidationFailedException : SecurityTokenValidationException
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of  <see cref="AudienceUriValidationFailedException"/>
 17        /// </summary>
 18        public AudienceUriValidationFailedException()
 019            : base( SR.Format( SR.ID4183 ) )
 20        {
 021        }
 22
 23        /// <summary>
 24        /// Initializes a new instance of  <see cref="AudienceUriValidationFailedException"/>
 25        /// </summary>
 26        public AudienceUriValidationFailedException( string message )
 627            : base( message )
 28        {
 629        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of  <see cref="AudienceUriValidationFailedException"/>
 33        /// </summary>
 34        public AudienceUriValidationFailedException( string message, Exception inner )
 035            : base( message, inner )
 36        {
 037        }
 38
 39        /// <summary>
 40        /// Initializes a new instance of  <see cref="AudienceUriValidationFailedException"/>
 41        /// </summary>
 42        protected AudienceUriValidationFailedException( SerializationInfo info, StreamingContext context )
 043            : base( info, context )
 44        {
 045        }
 46    }
 47}