public void UnicodeText_CanJustifyMultipleParts_TextLengthHandled7() { var str = "<j>ไม่เอาเห็ด| Blah| 2"; var formatter = new JustifyAlignFormatter(str, 12, false, 0); var r = formatter.GetFormattedLine(); Assert.AreEqual("ไม่เอา Blah 2", r); }
public void UnicodeText_CanJustify_TextLengthHandled() { var str = "<j>ไม่เอาเห็ด|1"; var formatter = new JustifyAlignFormatter(str, 12, false, 0); var r = formatter.GetFormattedLine(); Assert.AreEqual("ไม่เอาเห็ด 1", r); }
public void Justification_CanKeepTrailingBlank_TrailingBlanksShouldKeep() { var str = "<j> *Test|1"; var formatter = new JustifyAlignFormatter(str, 15, false, 0); var r = formatter.GetFormattedLine(); Assert.AreEqual(" *Test 1", r); }