< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.MessageBodyMemberAttribute
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessageBodyMemberAttribute.cs
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 28
Line coverage: 71.4%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessageBodyMemberAttribute.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;
 5
 6namespace CoreWCF
 7{
 8    [AttributeUsage(CoreWCFAttributeTargets.MessageMember, Inherited = false)]
 9    public class MessageBodyMemberAttribute : MessageContractMemberAttribute
 10    {
 60211        private int _order = -1;
 12        internal const string OrderPropertyName = "Order";
 13        public int Order
 14        {
 10615            get { return _order; }
 16            set
 17            {
 1618                if (value < 0)
 19                {
 020                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(val
 021                                                    SRCommon.ValueMustBeNonNegative));
 22                }
 23
 1624                _order = value;
 1625            }
 26        }
 27    }
 28}

Methods/Properties

.ctor()
Order()
Order(System.Int32)