Summary

Class:OpenCoverTest2.Class1
Assembly:ClassLibrary
File(s):C:\gitwork\OpenCoverTest\OpenCoverTest2\ClassLibrary\Class1.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:24
Line coverage:100%
Branch coverage:100%

Metrics

MethodCyclomatic complexity  NPath complexity  Sequence coverage  Branch coverage  
GetString(...)2271.4366.67

File(s)

C:\gitwork\OpenCoverTest\OpenCoverTest2\ClassLibrary\Class1.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6
 7namespace OpenCoverTest2
 8{
 9    public class Class1
 10    {
 11        public static string GetString(int index)
 212        {
 213             if (index == 0)
 114            {
 115                return "String1";
 16            }
 17            else
 118            {
 119                return "String2";
 20            }
 221        }
 22    }
 23}
 24

Methods/Properties

GetString(System.Int32)