Class RangedNumberRequest
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Encapsulates a range for values of a given type.
public class RangedNumberRequest : IEquatable<RangedNumberRequest>Inheritance
Implements
IEquatable<RangedNumberRequest>
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
RangedNumberRequest(Type, object, object)
Initializes a new instance of the RangedNumberRequest class.
public RangedNumberRequest(Type operandType, object minimum, object maximum)Parameters
operandType Type
Type of the operand.
minimum object
The minimum.
maximum object
The maximum.
Properties
Maximum
Gets the maximum value.
public object Maximum { get; }Property Value
Minimum
Gets the minimum value.
public object Minimum { get; }Property Value
OperandType
Gets the type of the operand.
public Type OperandType { 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(RangedNumberRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RangedNumberRequest other)Parameters
other RangedNumberRequest
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.
ToString()
public override string ToString()