2 overrides of GetIntervalsThatOverlapWith
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\IntervalTreeTests.cs (2)
366private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length) 389private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
22 references to GetIntervalsThatOverlapWith
Microsoft.CodeAnalysis.Workspaces.UnitTests (22)
UtilityTest\IntervalTreeTests.cs (22)
38var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 49var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 60var spans = GetIntervalsThatOverlapWith(tree, 0, 5); 71var spans = GetIntervalsThatOverlapWith(tree, 15, 5); 82var spans = GetIntervalsThatOverlapWith(tree, 10, 5); 93var spans = GetIntervalsThatOverlapWith(tree, 5, 5).Select(t => t.Item3); 104var spans = GetIntervalsThatOverlapWith(tree, 5, 2).Select(i => i.Item3); 115var spans = GetIntervalsThatOverlapWith(tree, 8, 2).Select(i => i.Item3); 126var spans = GetIntervalsThatOverlapWith(tree, 7, 2).Select(i => i.Item3); 137var spans = GetIntervalsThatOverlapWith(tree, 4, 2).Select(i => i.Item3); 148var spans = GetIntervalsThatOverlapWith(tree, 9, 2).Select(i => i.Item3); 159var spans = GetIntervalsThatOverlapWith(tree, 4, 7).Select(i => i.Item3); 171Assert.Empty(GetIntervalsThatOverlapWith(tree, 2, 2)); 172Assert.Empty(GetIntervalsThatOverlapWith(tree, 11, 2)); 173Assert.Empty(GetIntervalsThatOverlapWith(tree, 22, 2)); 176Assert.True(Set("A").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 2).Select(i => i.Item3))); 177Assert.True(Set("B").SetEquals(GetIntervalsThatOverlapWith(tree, 16, 2).Select(i => i.Item3))); 180Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 2, 20).Select(i => i.Item3))); 181Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 2, 14).Select(i => i.Item3))); 182Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 10).Select(i => i.Item3))); 183Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 20).Select(i => i.Item3))); 321var set1 = new HashSet<string>(GetIntervalsThatOverlapWith(tree, start, length).Select(i => i.Item3));