< Summary - CoreWCF Coverage — PR #1766

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ActionNotSupportedException.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 CoreWCF.Channels;
 6using CoreWCF.Runtime;
 7
 8namespace CoreWCF
 9{
 10    //[Serializable]
 11    public class ActionNotSupportedException : CommunicationException
 12    {
 013        public ActionNotSupportedException() { }
 014        public ActionNotSupportedException(string message) : base(message) { }
 015        public ActionNotSupportedException(string message, Exception innerException) : base(message, innerException) { }
 16        // protected ActionNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
 17
 18        internal Message ProvideFault(MessageVersion messageVersion)
 19        {
 20            Fx.Assert(messageVersion.Addressing != AddressingVersion.None, "");
 021            FaultCode code = FaultCode.CreateSenderFaultCode(AddressingStrings.ActionNotSupported, messageVersion.Addres
 022            string reason = Message;
 023            return Channels.Message.CreateMessage(
 024               messageVersion, code, reason, messageVersion.Addressing.FaultAction);
 25        }
 26    }
 27}