|
|
|
@ -37,7 +37,7 @@ namespace ICSharpCode.CodeCoverage.Tests.Highlighting |
|
|
|
|
|
|
|
|
|
|
|
string xml = "<CoverageSession xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n" + |
|
|
|
string xml = "<CoverageSession xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n" + |
|
|
|
"\t<Modules>\r\n" + |
|
|
|
"\t<Modules>\r\n" + |
|
|
|
"\t\t<Module>\r\n" + |
|
|
|
"\t\t<Module hash=\"44-54-B6-13-97-49-45-F8-6A-74-9E-49-0C-77-87-C6-9C-54-47-7A\">\r\n" + |
|
|
|
"\t\t\t<FullName>C:\\Projects\\Test\\Foo.Tests\\bin\\Foo.Tests.DLL</FullName>\r\n" + |
|
|
|
"\t\t\t<FullName>C:\\Projects\\Test\\Foo.Tests\\bin\\Foo.Tests.DLL</FullName>\r\n" + |
|
|
|
"\t\t\t<ModuleName>Foo.Tests</ModuleName>\r\n" + |
|
|
|
"\t\t\t<ModuleName>Foo.Tests</ModuleName>\r\n" + |
|
|
|
"\t\t\t<Files>\r\n" + |
|
|
|
"\t\t\t<Files>\r\n" + |
|
|
|
@ -48,13 +48,13 @@ namespace ICSharpCode.CodeCoverage.Tests.Highlighting |
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.FooTestFixture</FullName>\r\n" + |
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.FooTestFixture</FullName>\r\n" + |
|
|
|
"\t\t\t\t\t<Methods>\r\n" + |
|
|
|
"\t\t\t\t\t<Methods>\r\n" + |
|
|
|
"\t\t\t\t\t\t<Method visited=\"true\" cyclomaticComplexity=\"1\" sequenceCoverage=\"100\" branchCoverage=\"100\" isConstructor=\"false\" isStatic=\"false\" isGetter=\"false\" isSetter=\"false\">\r\n" + |
|
|
|
"\t\t\t\t\t\t<Method visited=\"true\" cyclomaticComplexity=\"1\" sequenceCoverage=\"100\" branchCoverage=\"100\" isConstructor=\"false\" isStatic=\"false\" isGetter=\"false\" isSetter=\"false\">\r\n" + |
|
|
|
"\t\t\t\t\t\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
"\t\t\t\t\t\t<Name>System.Void Foo.Tests.FooTestFixture::SimpleTest()</Name>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<Name>System.Void Foo.Tests.FooTestFixture::SimpleTest()</Name>\r\n" + |
|
|
|
"\t\t\t\t\t\t<FileRef uid=\"1\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<FileRef uid=\"1\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"1\" sc=\"3\" el=\"1\" ec=\"4\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"1\" sc=\"3\" el=\"1\" ec=\"4\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"2\" sc=\"4\" el=\"2\" ec=\"18\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"2\" sc=\"4\" el=\"2\" ec=\"18\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<SequencePoint vc=\"0\" sl=\"3\" sc=\"3\" el=\"3\" ec=\"4\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"0\" sl=\"3\" sc=\"3\" el=\"3\" ec=\"4\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t</SequencePoints>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t</SequencePoints>\r\n" + |
|
|
|
"\t\t\t\t\t\t</Method>\r\n" + |
|
|
|
"\t\t\t\t\t\t</Method>\r\n" + |
|
|
|
"\t\t\t\t\t</Methods>\r\n" + |
|
|
|
"\t\t\t\t\t</Methods>\r\n" + |
|
|
|
@ -62,7 +62,7 @@ namespace ICSharpCode.CodeCoverage.Tests.Highlighting |
|
|
|
"\t\t\t</Classes>\r\n" + |
|
|
|
"\t\t\t</Classes>\r\n" + |
|
|
|
"\t\t</Module>\r\n" + |
|
|
|
"\t\t</Module>\r\n" + |
|
|
|
"\t</Modules>\r\n" + |
|
|
|
"\t</Modules>\r\n" + |
|
|
|
"</CoverageSession>"; |
|
|
|
"</CoverageSession>"; |
|
|
|
CodeCoverageResults results = new CodeCoverageResults(new StringReader(xml)); |
|
|
|
CodeCoverageResults results = new CodeCoverageResults(new StringReader(xml)); |
|
|
|
CodeCoverageMethod method = results.Modules[0].Methods[0]; |
|
|
|
CodeCoverageMethod method = results.Modules[0].Methods[0]; |
|
|
|
CodeCoverageHighlighter highlighter = new CodeCoverageHighlighter(); |
|
|
|
CodeCoverageHighlighter highlighter = new CodeCoverageHighlighter(); |
|
|
|
|