mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-12 05:20:35 +01:00
Why does UsingMethod check _callscount? #452
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @robvangeloven on GitHub (Sep 26, 2022).
Originally assigned to: @StefH on GitHub.
When making this call:
My expectation is that this will work, but I get the error:
Expected _wireMockFixture.Server to have been called using method "POST", but didn't find it among the methods {"GET", "POST", "POST"}.
However, I'm trying to check that there was a singular call that matches the specifics of the assert. And there is, but the UsingPost also checks the _callsCount for number of "POST" used.
@StefH commented on GitHub (Sep 26, 2022):
@robvangeloven
Can you provide a failing unit-test ?
Because I cannot reproduce it in existing unit tests.
And also not in new unit tests (https://github.com/WireMock-Net/WireMock.Net/pull/816)
@robvangeloven commented on GitHub (Sep 26, 2022):
@StefH Sure!
@StefH commented on GitHub (Sep 26, 2022):
https://github.com/WireMock-Net/WireMock.Net/pull/816