< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.WSFederationHttpSecurityModeHelper
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WSFederationHttpSecurityMode.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
Line coverage: 100%
Branch coverage
50%
Covered branches: 2
Total branches: 4
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
IsDefined(...)50%44100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WSFederationHttpSecurityMode.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
 4namespace CoreWCF
 5{
 6    public enum WSFederationHttpSecurityMode
 7    {
 8        None,
 9        Message,
 10        TransportWithMessageCredential
 11    }
 12
 13    static class WSFederationHttpSecurityModeHelper
 14    {
 15        internal static bool IsDefined(WSFederationHttpSecurityMode value)
 16        {
 217            return (value == WSFederationHttpSecurityMode.None ||
 218                value == WSFederationHttpSecurityMode.Message ||
 219                value == WSFederationHttpSecurityMode.TransportWithMessageCredential);
 20        }
 21    }
 22}