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

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(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(); } }