-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inputs created from XmlDocument with "PreserveWhitespace = true" generate unexpected differences. #38
Comments
To be honest I would have expected the same as you. :-) It doesn't work without |
I'll see whether this works for older frameworks - I certainly haven't got access to everything XMLUnit.NET wants to support anymore - during CI. Will cut a new release the coming days. Many thanks for finding the bug :-) |
Glad I could help.
However creating document w/o |
you are correct, when I wrote what you quote my failing unit test actually contained Anyway, this is fixed now and 5d5edaa#diff-ee535be5744414e990a2353b3b7b3cc4d2ade8bb30e046c28405572e69f3a048R31 passes (it failed before my change). |
I've just published nuget packages for 2.9.2 |
Thanks for the quick fix! |
you're welcome. |
Hello!
First of all, thanks for the great library!
Maybe this is intentional, but I just spent way too much time figuring out why any 3 of the whitespace ignore rules were not working and were in fact returning twice the differences than w/o any additional rules.
Turns out, if you create
XmlDocument
withPreserveWhitespace
set totrue
and use that as input source, then the whitespace rules don't work.I've modified one of the test cases:
I guess I would have expected that any of the whitespace ignore rules would take precedence over
PreserveWhitespace
setting.The text was updated successfully, but these errors were encountered: