2 overrides of GetIntervalsThatOverlapWith
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\IntervalTreeTests.cs (2)
368private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length) 391private 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)
40var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 51var spans = GetIntervalsThatOverlapWith(tree, 0, 1); 62var spans = GetIntervalsThatOverlapWith(tree, 0, 5); 73var spans = GetIntervalsThatOverlapWith(tree, 15, 5); 84var spans = GetIntervalsThatOverlapWith(tree, 10, 5); 95var spans = GetIntervalsThatOverlapWith(tree, 5, 5).Select(t => t.Item3); 106var spans = GetIntervalsThatOverlapWith(tree, 5, 2).Select(i => i.Item3); 117var spans = GetIntervalsThatOverlapWith(tree, 8, 2).Select(i => i.Item3); 128var spans = GetIntervalsThatOverlapWith(tree, 7, 2).Select(i => i.Item3); 139var spans = GetIntervalsThatOverlapWith(tree, 4, 2).Select(i => i.Item3); 150var spans = GetIntervalsThatOverlapWith(tree, 9, 2).Select(i => i.Item3); 161var spans = GetIntervalsThatOverlapWith(tree, 4, 7).Select(i => i.Item3); 173Assert.Empty(GetIntervalsThatOverlapWith(tree, 2, 2)); 174Assert.Empty(GetIntervalsThatOverlapWith(tree, 11, 2)); 175Assert.Empty(GetIntervalsThatOverlapWith(tree, 22, 2)); 178Assert.True(Set("A").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 2).Select(i => i.Item3))); 179Assert.True(Set("B").SetEquals(GetIntervalsThatOverlapWith(tree, 16, 2).Select(i => i.Item3))); 182Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 2, 20).Select(i => i.Item3))); 183Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 2, 14).Select(i => i.Item3))); 184Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 10).Select(i => i.Item3))); 185Assert.True(Set("A", "B").SetEquals(GetIntervalsThatOverlapWith(tree, 6, 20).Select(i => i.Item3))); 323var set1 = new HashSet<string>(GetIntervalsThatOverlapWith(tree, start, length).Select(i => i.Item3));