Fix markup detection DocumentWriter.

This commit is contained in:
Daniel Kraus 2015-08-16 16:25:53 +02:00
parent 392de61b74
commit 221509520d
2 changed files with 5 additions and 3 deletions

View File

@ -100,9 +100,11 @@ namespace Tests.Formatter
[Test]
public void TextMarkup()
{
_docWriter.Document = new Document();
_docWriter.WriteLine("This is not bold. <b>This is bold!</b>");
DocumentWriter output = new DocumentWriter();
_docWriter.Parent = output;
_docWriter.Write("This is not bold. <b>This is bold!</b>\rThis not.");
_docWriter.Flush();
Assert.AreEqual("This is not bold. This is bold!\rThis not.", output.Text);
}
}
}