TextParserTests ParseMultipleTextLines Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Fonts.Tests
Assembly: DeltaEngine.Rendering2D.Fonts.Tests (in DeltaEngine.Rendering2D.Fonts.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ParseMultipleTextLines()
Examples

[Test]
public void ParseMultipleTextLines()
{
    var lines = parser.GetLines(GetSpaces(1) + Environment.NewLine + GetSpaces(2));
    Assert.AreEqual(2, lines.Count);
    Assert.AreEqual(GetSpaces(1), new string(lines[0].ToArray()));
    Assert.AreEqual(GetSpaces(2), new string(lines[1].ToArray()));
}
See Also