You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Using HaveReceived(0).Calls() throws an exception if no calls have been made.
"Expected StubServer to have been called at address matching the absolute url "https://localhost:62040/path/to/the/resource", but no calls were made."
Describe the solution you'd like HaveReceived(0).Calls() should validate that no calls have been made to the stub server, optionally taking into account the specifications such as .AtAbsoluteUrl()
I suppose the method was not intended to be used this way, but I think it would be neat to leverage WireMock.FluentAssertions for this kind of tests.
A use case I have in mind is for caching server responses.
Describe alternatives you've considered
I am currently using the following - just FluentAssertions, not the WireMock version.
Is your feature request related to a problem? Please describe.
Using
HaveReceived(0).Calls()
throws an exception if no calls have been made."Expected StubServer to have been called at address matching the absolute url "https://localhost:62040/path/to/the/resource", but no calls were made."
Describe the solution you'd like
HaveReceived(0).Calls()
should validate that no calls have been made to the stub server, optionally taking into account the specifications such as.AtAbsoluteUrl()
I suppose the method was not intended to be used this way, but I think it would be neat to leverage WireMock.FluentAssertions for this kind of tests.
A use case I have in mind is for caching server responses.
Describe alternatives you've considered
I am currently using the following - just FluentAssertions, not the WireMock version.
The text was updated successfully, but these errors were encountered: