public void IntersectsWithSelections_OneSelection() { Init(); lines.selections[0].anchor = 1; lines.selections[0].caret = 1; Assert.AreEqual(false, lines.IntersectSelections(2, 3)); Assert.AreEqual(false, lines.IntersectSelections(0, 0)); Assert.AreEqual(true, lines.IntersectSelections(0, 1)); Assert.AreEqual(true, lines.IntersectSelections(1, 2)); lines.selections[0].anchor = 5; lines.selections[0].caret = 7; Assert.AreEqual(false, lines.IntersectSelections(2, 5)); Assert.AreEqual(false, lines.IntersectSelections(7, 8)); Assert.AreEqual(true, lines.IntersectSelections(5, 5)); Assert.AreEqual(true, lines.IntersectSelections(4, 6)); Assert.AreEqual(true, lines.IntersectSelections(6, 7)); Assert.AreEqual(true, lines.IntersectSelections(6, 8)); }