Summary

Class:OpenCoverTest2.Program
Assembly:OpenCoverTest2
File(s):C:\gitwork\OpenCoverTest\OpenCoverTest2\OpenCoverTest2\Program.cs
Covered lines:9
Uncovered lines:8
Coverable lines:17
Total lines:31
Line coverage:52.9%
Branch coverage:50%

Metrics

MethodCyclomatic complexity  NPath complexity  Sequence coverage  Branch coverage  
Main(...)2252.9466.67

File(s)

C:\gitwork\OpenCoverTest\OpenCoverTest2\OpenCoverTest2\Program.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6
 7namespace OpenCoverTest2
 8{
 9    class Program
 10    {
 11        static void Main(string[] args)
 212        {
 213             if (args.Length > 0)
 214            {
 15                try
 216                {
 217                    int index = Int32.Parse(args[0]);
 218                    Console.WriteLine(Class1.GetString(index));
 219                }
 020                catch (FormatException)
 021                {
 022                    Console.WriteLine("{0}: Bad Format", args[0]);
 023                }
 024                catch (OverflowException)
 025                {
 026                    Console.WriteLine("{0}: Overflow", args[0]);
 027                }
 228            }
 229        }
 30    }
 31}

Methods/Properties

Main(System.String[])