AutoFixture.Kernel.NoSpecimen.GetHashCode C# (CSharp) Метод

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

Serves as a hash function for the NoSpecimen class.
public GetHashCode ( ) : int
Результат int
        public override int GetHashCode()
        {
#pragma warning disable 618
            return this.request == null ? 0 : this.request.GetHashCode();
#pragma warning restore 618
        }

Usage Example

Пример #1
0
        public void AUT_NoSpecimen_GetHashCode_Method_DirectCall_No_Exception_Thrown_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodGetHashCode);

            // Act
            Action executeAction = () => _noSpecimenInstance.GetHashCode();

            // Assert
            Should.NotThrow(executeAction);
        }