C# Класс 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.

Наследование: IEquatable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
NoSpecimen System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
NoSpecimen ( object request ) : System

Описание методов

Equals() публичный Метод

Indicates whether the current instance is equal to another NoSpecimen instance.
public Equals ( other ) : bool
other /// A instance to compare with this instance. ///
Результат bool

Equals() публичный Метод

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.
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for the NoSpecimen class.
public GetHashCode ( ) : int
Результат int

NoSpecimen() публичный Метод

Initializes a new instance of the NoSpecimen class with a null request.
public NoSpecimen ( ) : System
Результат System