in BoostTestAdapterNunit/BoostTestResultTest.cs [890:929]
public void ParseTestContext()
{
using (Stream report = TestHelper.LoadEmbeddedResource("BoostTestAdapterNunit.Resources.ReportsLogs.TestContext.ExampleBoostUnittest.exe.test.report.xml"))
using (Stream log = TestHelper.LoadEmbeddedResource("BoostTestAdapterNunit.Resources.ReportsLogs.TestContext.ExampleBoostUnittest.exe.test.log.xml"))
{
Parse(report, log, null, null);
BoostTestResult masterSuiteResult = this.TestResultCollection[string.Empty];
Assert.That(masterSuiteResult, Is.Not.Null);
AssertReportDetails(masterSuiteResult, null, "mytest", TestResultType.Failed, 5, 4, 0, 0, 1, 0, 0);
BoostTestResult testCaseResult = this.TestResultCollection["test1"];
Assert.That(testCaseResult, Is.Not.Null);
AssertReportDetails(testCaseResult, masterSuiteResult, "test1", TestResultType.Failed, 5, 4, 0);
AssertLogDetails(testCaseResult, 4000, new LogEntry[] {
MakeLogEntry<LogEntryError>(
"check processor.op2(i, j) has failed",
new SourceFileInfo("c:/exampleboostunittest/source.cpp", 19),
new string[] { "With optimization level 1", "With parameter i = 1", "With parameter j = 0" }
),
MakeLogEntry<LogEntryError>(
"check processor.op1(i) has failed",
new SourceFileInfo("c:/exampleboostunittest/source.cpp", 16),
new string[] { "With optimization level 2", "With parameter i = 0" }
),
MakeLogEntry<LogEntryError>(
"check processor.op1(i) has failed",
new SourceFileInfo("c:/exampleboostunittest/source.cpp", 16),
new string[] { "With optimization level 2", "With parameter i = 1" }
),
MakeLogEntry<LogEntryError>(
"check processor.op2(i, j) has failed",
new SourceFileInfo("c:/exampleboostunittest/source.cpp", 19),
new string[] { "With optimization level 2", "With parameter i = 1", "With parameter j = 0" }
),
});
}
}