Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

GetErrorMessage formatting error for body error message.  #22

Description

@jnormen

There is a bug in: GetErrorMessage when it verify body.
It expect 3 parameters for the error message.
PropertyName
Value
Expected value but only two params exist in the code and gives a formatter error.

This will work: (added propertyName in the array.)

file: HttpInteractionVerifier
line: 114?

                  var propertyHasExpectedValue = providedProperty.Equals(propertyValue);

                   if (!propertyHasExpectedValue)
                   {
                       var message = GetErrorMessage(ErrorMessages.IncorrectReposnseBodyPropertyValue, propertyName,
                           propertyValue, providedProperty);
                       errors.Add(message);
                   }

I do not know how to contribute to the code it self for a review. Hope this lib is still active. Like this methods better then the RUST version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions