public void CreatinCrapReportforCrap4Netcode()
        {
            ReflectorParser ccParser = new ReflectorParser();
            //ccParser.LoadData(@"Crap4Net\Crap4NetReflectorCCReport.xml");
            //foreach (var item in ccParser.Data)
            //{
            //    Console.WriteLine("{0}.{1}:{2}",
            //        item.Method.TypeName,
            //        item.Method.MethodName,
            //        item.CyclomaticComplexity);
            //}

            VSCoverageParser covParser = new VSCoverageParser();
            //covParser.LoadData(@"Crap4Net\data.coverage");
            //foreach (var item in covParser.Data)
            //{
            //    Console.WriteLine("{0}.{1}:{2}",
            //        item.Method.TypeName,
            //        item.Method.MethodName,
            //        item.CoverageData);
            //}
            CrapAnalyzer.CCParser = ccParser;
            CrapAnalyzer.CoverageParser = covParser;
            var result = CrapAnalyzer.CreateCrapReport(
                @"AcceptnaceTestData\Crap4Net\data.coverage",
                @"AcceptnaceTestData\Crap4Net\Crap4NetReflectorCCReport.xml");
            foreach (var item in result)
            {
                Console.WriteLine(item.Method+":"+item.Crap);

            }
        }
        public void LoadData_OverloadedMethod_ParseAllInstances()
        {
            Assert.Inconclusive("not Supported yet - need to add method true signature");
            var target = new VSCoverageParser();
            target.LoadData("ctor.xml");
            var actual = target.Data;

            Assert.AreEqual(1, actual.Count);
            Assert.IsTrue(actual.Contains(new CoverageDataEntry("Class1", ".ctor", 100)));
        }
 public void LoadData_InvalidFileName_throwsException()
 {
     var target = new VSCoverageParser();
     target.LoadData("NoSuchFile.xml");
 }
 public void Data_FileNotLoaded_ThrowsException()
 {
     var target = new VSCoverageParser();
     var dummy = target.Data;
 }
 public void MyTestInitialize()
 {
     _target = new VSCoverageParser();
     _target.LoadData(@"unitTestdata\VSCoverageFiles\DummyProject.coverage");
 }