Ignore properties with MarkupMatches (id) #1724
-
I remember that there was a way to tell AngleSharp to ignore specific properties what asserting equality with Basically my problem is the following: I just need to ignore the ID parameter of an element because it is a random string. Bunit.HtmlEqualException: HTML comparison failed.
Bunit.HtmlEqualException
HTML comparison failed.
The following errors were found:
1: The attribute at article(0)[id] was not expected.
Actual HTML:
<article id="90b3857136684c57a9744ce6830a2e5a" class="myclass">
</article>
Expected HTML:
<article class="myclass">
</article> |
Beta Was this translation helpful? Give feedback.
Answered by
MihailsKuzmins
Jun 5, 2025
Replies: 1 comment
-
I guess I found it |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MihailsKuzmins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess I found it
※:https://bunit.dev/docs/verification/semantic-html-comparison.html