|
|
|
@ -16,33 +16,81 @@ namespace ICSharpCode.CodeCoverage.Tests.Coverage |
|
|
|
public void SetUpFixture() |
|
|
|
public void SetUpFixture() |
|
|
|
{ |
|
|
|
{ |
|
|
|
string xml = |
|
|
|
string xml = |
|
|
|
"<PartCoverReport>\r\n" + |
|
|
|
"<CoverageSession xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n" + |
|
|
|
" <File id=\"1\" url=\"c:\\Projects\\Foo\\FooTestFixture.cs\" />\r\n" + |
|
|
|
"\t<Modules>\r\n" + |
|
|
|
" <File id=\"2\" url=\"c:\\Projects\\Foo\\SimpleTestFixture.cs\" />\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" + |
|
|
|
" <File id=\"3\" url=\"c:\\Projects\\Foo\\BarTestFixture.cs\" />\r\n" + |
|
|
|
"\t\t\t<FullName>C:\\Projects\\Test\\Foo.Tests\\bin\\Foo.Tests.DLL</FullName>\r\n" + |
|
|
|
" <Assembly id=\"1\" name=\"Foo.Tests\" module=\"C:\\Projects\\Test\\Foo.Tests\\bin\\Foo.Tests.DLL\" domain=\"test-domain-Foo.Tests.dll\" domainIdx=\"1\" />\r\n" + |
|
|
|
"\t\t\t<ModuleName>Foo.Tests</ModuleName>\r\n" + |
|
|
|
" <Assembly id=\"2\" name=\"Bar.Tests\" module=\"C:\\Projects\\Test\\Foo.Tests\\bin\\Bar.Tests.DLL\" domain=\"test-domain-Bar.Tests.dll\" domainIdx=\"1\" />\r\n" + |
|
|
|
"\t\t\t<Files>\r\n" + |
|
|
|
" <Type name=\"Foo.Tests.FooTestFixture\" asmref=\"1\">\r\n" + |
|
|
|
"\t\t\t\t<File uid=\"1\" fullPath=\"c:\\Projects\\Foo\\FooTestFixture.cs\" />\r\n" + |
|
|
|
" <Method name=\"FooTest\">\r\n" + |
|
|
|
"\t\t\t\t<File uid=\"2\" fullPath=\"c:\\Projects\\Foo\\SimpleTestFixture.cs\" />\r\n" + |
|
|
|
" <pt visit=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" fid=\"1\" />\r\n" + |
|
|
|
"\t\t\t</Files>\r\n" + |
|
|
|
" </Method>\r\n" + |
|
|
|
"\t\t\t<Classes>\r\n" + |
|
|
|
" </Type>\r\n" + |
|
|
|
"\t\t\t\t<Class>\r\n" + |
|
|
|
" <Type name=\"Foo.Tests.SimpleTestFixture2\" asmref=\"1\">\r\n" + |
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.FooTestFixture</FullName>\r\n" + |
|
|
|
" <Method name=\"SimpleTest2\">\r\n" + |
|
|
|
"\t\t\t\t\t<Methods>\r\n" + |
|
|
|
" <pt visit=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" fid=\"2\" />\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" + |
|
|
|
" </Method>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
" </Type>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<Name>System.Void Foo.Tests.FooTestFixture::FooTest()</Name>\r\n" + |
|
|
|
" <Type name=\"Foo.Tests.SimpleTestFixture3\" asmref=\"1\">\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<FileRef uid=\"1\" />\r\n" + |
|
|
|
" <Method name=\"SimpleTest3\">\r\n" + |
|
|
|
"\t\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
" <pt visit=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" fid=\"2\" />\r\n" + |
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" />\r\n" + |
|
|
|
" </Method>\r\n" + |
|
|
|
"\t\t\t\t\t\t\t</SequencePoints>\r\n" + |
|
|
|
" </Type>\r\n" + |
|
|
|
"\t\t\t\t\t\t</Method>\r\n" + |
|
|
|
" <Type name=\"Foo.Tests.BarTestFixture\" asmref=\"2\">\r\n" + |
|
|
|
"\t\t\t\t\t</Methods>\r\n" + |
|
|
|
" <Method name=\"SimpleTest2\">\r\n" + |
|
|
|
"\t\t\t\t</Class>\r\n" + |
|
|
|
" <pt visit=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" fid=\"3\" />\r\n" + |
|
|
|
"\t\t\t\t<Class>\r\n" + |
|
|
|
" </Method>\r\n" + |
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.SimpleTestFixture2</FullName>\r\n" + |
|
|
|
" </Type>\r\n" + |
|
|
|
"\t\t\t\t\t<Methods>\r\n" + |
|
|
|
"</PartCoverReport>"; |
|
|
|
"\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\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<Name>System.Void Foo.Tests.SimpleTestFixture2::SimpleTest2()</Name>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<FileRef uid=\"2\" />\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" />\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</Methods>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t</Class>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t<Class>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.SimpleTestFixture3</FullName>\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\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<Name>System.Void Foo.Tests.SimpleTestFixture3::SimpleTest3()</Name>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<FileRef uid=\"2\" />\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" />\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</Methods>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t</Class>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t</Classes>\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-7B\">\r\n" + |
|
|
|
|
|
|
|
"\t\t\t<FullName>C:\\Projects\\Test\\Foo.Tests\\bin\\Bar.Tests.DLL</FullName>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t<ModuleName>Bar.Tests</ModuleName>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t<Files>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t<File uid=\"3\" fullPath=\"c:\\Projects\\Foo\\BarTestFixture.cs\" />\r\n" + |
|
|
|
|
|
|
|
"\t\t\t</Files>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t<Classes>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t<Class>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t<FullName>Foo.Tests.BarTestFixture</FullName>\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\t<MetadataToken>100663297</MetadataToken>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<Name>System.Void Foo.Tests.BarTestFixture::.SimpleTest2()</Name>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<FileRef uid=\"3\" />\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t<SequencePoints>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t\t\t\t\t<SequencePoint vc=\"1\" sl=\"20\" sc=\"3\" el=\"20\" ec=\"4\" />\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</Methods>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t\t</Class>\r\n" + |
|
|
|
|
|
|
|
"\t\t\t</Classes>\r\n" + |
|
|
|
|
|
|
|
"\t\t</Module>\r\n" + |
|
|
|
|
|
|
|
"\t</Modules>\r\n" + |
|
|
|
|
|
|
|
"</CoverageSession>"; |
|
|
|
|
|
|
|
|
|
|
|
base.CreateCodeCoverageResults(xml); |
|
|
|
base.CreateCodeCoverageResults(xml); |
|
|
|
} |
|
|
|
} |
|
|
|
|