public void SpanIncludingLineBreak1() { var span = new TextLineSpan(new TextSpan(0, 2), 2); Assert.AreEqual(4, span.SpanIncludingLineBreak.Length); Assert.AreEqual(span.LengthIncludingLineBreak, span.SpanIncludingLineBreak.Length); }
public void Equals3() { var left = new TextLineSpan(new TextSpan(0, 2), 3); var right = new TextLineSpan(new TextSpan(0, 3), 3); Assert.AreNotEqual(left, right); Assert.IsFalse(left == right); Assert.IsTrue(left != right); }
public void Ctor1() { var body = new TextSpan(0, 3); var span = new TextLineSpan(body, 2); Assert.AreEqual(body, span.Span); Assert.AreEqual(2, span.LineBreakLength); Assert.AreEqual(new TextSpan(3, 2), span.LineBreakSpan); }