SomeItemsConstraint<T>
SomeItemsConstraint applies another constraint to each
item in a collection, succeeding if any of them succeeds.
using System;
using System.Runtime.CompilerServices;
namespace NUnit.Framework.Constraints
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class SomeItemsConstraint<[System.Runtime.CompilerServices.Nullable(2)] T> : SomeItemsConstraint
{
private readonly EqualConstraint<T> _equalConstraint;
public SomeItemsConstraint(EqualConstraint<T> itemConstraint)
: base(itemConstraint)
{
_equalConstraint = itemConstraint;
}
public SomeItemsConstraint UsingPropertiesComparer(Func<PropertiesComparerConfiguration<T>, PropertiesComparerConfiguration<T>> configure)
{
_equalConstraint.UsingPropertiesComparer(configure);
return this;
}
}
}