< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ActionMismatchAddressingException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ActionMismatchAddressingException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 37
Line coverage: 0%
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%
ProvideFault(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ActionMismatchAddressingException.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 CoreWCF.Channels;
 5using CoreWCF.Runtime;
 6
 7namespace CoreWCF
 8{
 9    //[Serializable]
 10    internal class ActionMismatchAddressingException : ProtocolException
 11    {
 12        public ActionMismatchAddressingException(string message, string soapActionHeader, string httpActionHeader)
 013            : base(message)
 14        {
 015            HttpActionHeader = httpActionHeader;
 016            SoapActionHeader = soapActionHeader;
 017        }
 18
 19        //protected ActionMismatchAddressingException(SerializationInfo info, StreamingContext context)
 20        //    : base(info, context)
 21        //{
 22        //}
 23
 024        public string HttpActionHeader { get; }
 25
 026        public string SoapActionHeader { get; }
 27
 28        internal Message ProvideFault(MessageVersion messageVersion)
 29        {
 30            Fx.Assert(messageVersion.Addressing == AddressingVersion.WSAddressing10, "");
 031            WSAddressing10ProblemHeaderQNameFault phf = new WSAddressing10ProblemHeaderQNameFault(this);
 032            Message message = Channels.Message.CreateMessage(messageVersion, phf, messageVersion.Addressing.FaultAction)
 033            phf.AddHeaders(message.Headers);
 034            return message;
 35        }
 36    }
 37}