< Summary - CoreWCF Coverage — PR #1766

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/MethodCall.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.Diagnostics.Contracts;
 5using System.Reflection;
 6
 7namespace CoreWCF.Channels
 8{
 9    // MethodCall associates a MethodBase with the arguments to pass to it.
 10    internal class MethodCall
 11    {
 112        public MethodCall(object[] args)
 13        {
 14            Contract.Assert(args != null);
 115            Args = args;
 116        }
 17
 118        public MethodCall(MethodBase methodBase, object[] args) : this(args)
 19        {
 20            Contract.Assert(methodBase != null);
 121            MethodBase = methodBase;
 122        }
 23
 324        public MethodBase MethodBase { get; private set; }
 25
 326        public object[] Args { get; private set; }
 27    }
 28}