How to verify a string TYPE only and ignore its value #910
Replies: 1 comment 4 replies
-
can u share the code of your test. so i can better understand the scenario |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that the library provides some helpful methods for example
ScrubMember()
,ScrubMembersWithType()
,IgnoreMember()
etc. but neither of these is working for me because I am trying to verify an API response which is an auto-generated plain string. It is NOT a JSON response so none of the above-mentioned methods work. For now I tackled it with usingScrubLinesContaining("SM-")
but I am wondering if there is any other solution in which I ignore the value of the string and only verify if the response is of type `string.Because this string is not a GUID so I can't use
ScrubInlineGuids()
method.Beta Was this translation helpful? Give feedback.
All reactions