pact-foundation / pact-net

.NET version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://pact.io
MIT License
823 stars 225 forks source link

[GH-505]: Include VerificationExecutionResult when verification fails #508

Open flakey-bit opened 1 week ago

flakey-bit commented 1 week ago

As per https://github.com/pact-foundation/pact-net/issues/505 we want to be able to distinguish tehcnical failures from simply not honouring the contract.

This PR throws a more specific exception which allows the caller to determine what has happened.

Merging into the 4.x release branch rather than master - if not, would need to revisit JSON serialization side of things