private void Validate_IsSubsetOf(PooledSet <T> set, Span <T> span) { IEqualityComparer <T> comparer = set.Comparer; foreach (T value in set) { if (!SpanContains(span, value, comparer)) { Assert.False(set.IsSubsetOf(span)); return; } } Assert.True(set.IsSubsetOf(span)); }