Class ConstrainedStringRequest
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Encapsulates a maximum length for a string.
public class ConstrainedStringRequest : IEquatable<ConstrainedStringRequest>Inheritance
object ← ConstrainedStringRequest
Implements
IEquatable<ConstrainedStringRequest>
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
ConstrainedStringRequest(int, int)
Initializes a new instance of the ConstrainedStringRequest class.
public ConstrainedStringRequest(int minimumLength, int maximumLength)Parameters
minimumLength int
The minimum length.
maximumLength int
The maximum length.
ConstrainedStringRequest(int)
Initializes a new instance of the ConstrainedStringRequest class.
public ConstrainedStringRequest(int maximumLength)Parameters
maximumLength int
The maximum.
Properties
MaximumLength
Gets the maximum length.
public int MaximumLength { get; }Property Value
MinimumLength
Gets the minimum length.
public int MinimumLength { get; }Property Value
Methods
Equals(object)
Determines whether the specified Object is equal to this instance.
public override bool Equals(object obj)Parameters
obj object
The Object to compare with this instance.
Returns
true if the specified Object is equal to this instance; otherwise, false.
Exceptions
The obj parameter is null.
Equals(ConstrainedStringRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ConstrainedStringRequest other)Parameters
other ConstrainedStringRequest
An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.