Verify multiple times within the same test method? #806
-
I have code like this: await Verify(uploadDetails)
.ScrubInlineGuids()
.ScrubMember("Policy");
var policy = Encoding.UTF8.GetString(
Convert.FromBase64String((string)uploadDetails.Fields["Policy"]));
await VerifyJson(policy)
.UseFileName("test")
.ScrubInlineGuids(); ... but Verify only seems to work for the first call. Is this not possible? I would have expected this to work, even without the I'm aware of #772, but even if it was possible (I'm trying to target a specific dictionary key), I think that it makes more sense for it to be written to a separate file, otherwise it looks like this property is actually an object in the first snapshot. |
Beta Was this translation helpful? Give feedback.
Answered by
SimonCropp
Mar 10, 2023
Replies: 1 comment 7 replies
-
try this
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can call Verify multiple times, but you must supply some extra uniqueness. for example using
.UseMethodName("customName")