<PackageReference Include="NUnit" Version="4.6.1" />

NUnit.Framework.Constraints.AnyOfConstraint

public class AnyOfConstraint : Constraint
AnyOfConstraint is used to determine whether the value is equal to any of the expected values.
namespace NUnit.Framework.Constraints { public class AnyOfConstraint : Constraint { public AnyOfConstraint IgnoreCase { get; } public AnyOfConstraint IgnoreWhiteSpace { get; } public AnyOfConstraint IgnoreLineEndingFormat { get; } public AnyOfConstraint(ICollection expected); public AnyOfConstraint Using(IComparer comparer); public AnyOfConstraint Using<[System.Runtime.CompilerServices.Nullable(2)] T>(IComparer<T> comparer); public AnyOfConstraint Using<[System.Runtime.CompilerServices.Nullable(2)] T>(Comparison<T> comparer); public AnyOfConstraint Using(IEqualityComparer comparer); public AnyOfConstraint Using<[System.Runtime.CompilerServices.Nullable(2)] T>(IEqualityComparer<T> comparer); public AnyOfConstraint Using<[System.Runtime.CompilerServices.Nullable(2)] T>(Func<T, T, bool> comparer); public AnyOfConstraint UsingPropertiesComparer(); public AnyOfConstraint UsingPropertiesComparer(Func<PropertiesComparerConfigurationUntyped, PropertiesComparerConfigurationUntyped> configure); public AnyOfConstraint UsingPropertiesComparer<[System.Runtime.CompilerServices.Nullable(2)] T>(Func<PropertiesComparerConfiguration<T>, PropertiesComparerConfiguration<T>> configure); } }