< Summary

Information
Class: Test.TestClass
Assembly: Sample
File(s): C:\temp\TestClass.cs
Line coverage
72%
Covered lines: 24
Uncovered lines: 9
Coverable lines: 33
Total lines: 38
Line coverage: 72.7%
Branch coverage
50%
Covered branches: 2
Total branches: 4
Branch coverage: 50%
Method coverage
80%
Covered methods: 4
Total methods: 5
Method coverage: 80%

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
SampleFunction()50%4480%
ParentMethod()100%11100%
NestedLocalFunction(System.String)100%11100%
MethodWithLambda()100%11100%
SampleFunction()100%110%

File(s)

C:\temp\TestClass.cs

#LineLine coverage
 1using System;
 2
 3namespace Test
 4{
 5    class TestClass
 6    {
 7        public void SampleFunction()
 8        {
 29            string test = string.Format(
 210                "{0} {1}",
 211                 "Hello",
 212                 "World");
 213
 14            Console.WriteLine(test);
 215            int i = 10;
 216
 17            if (i > 0 || i > 1)
 218            {
 219                Console.WriteLine(i + " is greater that 0");
 220            }
 221            else
 22            {
 023                Console.WriteLine(i + " is not greater that 0");
 024            }
 025        }
 226
 27        public class NestedClass
 28        {
 229            public void SampleFunction()
 230            {
 31                Console.WriteLine(
 232                    "{0} {1}",
 33                     "Hello",
 34                     "World");
 235            }
 236        }
 237    }
 238}