C# Class AutoFixture.Kernel.NoSpecimen

Signifies that it's not a specimen.

ISpecimenBuilder implementations are expected to return NoSpecimen instances if they can't handle the request. This ensures that can be used as a proper return value.

Inheritance: IEquatable
Show file Open project: nxzzkj/lazyiot Class Usage Examples

Private Properties

Property Type Description
NoSpecimen System

Public Methods

Method Description
Equals ( other ) : bool

Indicates whether the current instance is equal to another NoSpecimen instance.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current NoSpecimen instance.

GetHashCode ( ) : int

Serves as a hash function for the NoSpecimen class.

NoSpecimen ( ) : System

Initializes a new instance of the NoSpecimen class with a null request.

Private Methods

Method Description
NoSpecimen ( object request ) : System

Method Details

Equals() public method

Indicates whether the current instance is equal to another NoSpecimen instance.
public Equals ( other ) : bool
other /// A instance to compare with this instance. ///
return bool

Equals() public method

Determines whether the specified object is equal to the current NoSpecimen instance.
public Equals ( object obj ) : bool
obj object The to compare to the current instance.
return bool

GetHashCode() public method

Serves as a hash function for the NoSpecimen class.
public GetHashCode ( ) : int
return int

NoSpecimen() public method

Initializes a new instance of the NoSpecimen class with a null request.
public NoSpecimen ( ) : System
return System