コード例 #1
0
        public void TextSectionWithDifferentLengthAreNotEqual()
        {
            TextSection lhs = new TextSection(0, 15);
            TextSection rhs = new TextSection(0, 1);

            Assert.IsFalse(lhs.Equals(rhs));
        }
コード例 #2
0
        public void TextSectionWithSameOffsetAndLengthAreEqual()
        {
            TextSection lhs = new TextSection(0, 1);
            TextSection rhs = new TextSection(0, 1);

            Assert.IsTrue(lhs.Equals(rhs));
        }