Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 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);
 }