private void Validate_Overlaps(PooledSet <T> set, Span <T> span) { foreach (T value in span) { if (set.Contains(value)) { Assert.True(set.Overlaps(span)); return; } } Assert.False(set.Overlaps(span)); }