public void PerformanceTests_FastPath(IEnumerable values, bool ignoreCase) { Warn.Unless(() => { if (ignoreCase) { Assert.That(values, Is.Unique.IgnoreCase); } else { Assert.That(values, Is.Unique); } }, HelperConstraints.HasMaxTime(100)); }
public void PerformanceTests(IEnumerable values) { Warn.Unless(() => CollectionAssert.AllItemsAreUnique(values), HelperConstraints.HasMaxTime(100)); }