← Back to team overview

nunit-core team mailing list archive

[Bug 868278] Re: in the result.xml file, the newline character is escaped

 

The message is stored in the xml file as a CData element and includes
the newlines. You can see this if you open the file in a text editor.
When displaying the xml file, most browsers will suppress the newlines,
but if you retrieve the message programmatically it will display
correctly.

** Changed in: nunitv2
     Assignee: Charlie Poole (charlie.poole) => (unassigned)

** Changed in: nunitv2
       Status: New => Invalid

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/868278

Title:
  in the result.xml file, the newline character is escaped

Status in NUnit V2 Test Framework:
  Invalid

Bug description:
  NUnit version 2.5.10, NUnitRunner

  1. Call Assert function with message contains newline character. e.g:
                   StringBuilder msg = new StringBuilder();
                   msg.AppendLine("line1");
                   msg.AppendLine("line2");
                   ....
                   msg.AppendLine("line3");
                  Assert.False(True, msg.ToString());
  2. Run testing for this assembly
  3. Save as the result as xml
  4. Open the result in xml format
  => The message doesn't include newline character. It show all in 1 line.
  Expected: It should keep the newline character.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/868278/+subscriptions