I suspect WithJsonContent is a bit too strict as it requires that properties appear in the exact same order.
This makes it difficult to develop tests if what I'm handing the HttpClient to isn't my own code and I have no control over how it will choose to serialize things.
Also, it would be nice if the MockHttpMatchException included what it received. Not just what it's expecting.
I suspect WithJsonContent is a bit too strict as it requires that properties appear in the exact same order.
This makes it difficult to develop tests if what I'm handing the
HttpClientto isn't my own code and I have no control over how it will choose to serialize things.Also, it would be nice if the
MockHttpMatchExceptionincluded what it received. Not just what it's expecting.