Namespace: DeltaEngine.Rendering2D.Fonts.Tests
Assembly: DeltaEngine.Rendering2D.Fonts.Tests (in DeltaEngine.Rendering2D.Fonts.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Fonts.Tests (in DeltaEngine.Rendering2D.Fonts.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void GetLines() { var lines = textWrapper.SplitTextIntoLines(ThreeLineText, new Size(70, fontDescription.PixelLineHeight * 3), true); Assert.AreEqual(3, lines.Count); Assert.AreEqual(Spaces, new string(lines[0].ToArray())); Assert.AreEqual(Spaces, new string(lines[1].ToArray())); Assert.AreEqual(Spaces, new string(lines[2].ToArray())); }
[Test] public void GetLinesWithNoSpaceLetters() { var lines = textWrapper.SplitTextIntoLines("aaaa aaaaa aaa!", new Size(70, fontDescription.PixelLineHeight * 3), true); Assert.AreEqual(2, lines.Count); }
See Also