xmlunit.net icon indicating copy to clipboard operation
xmlunit.net copied to clipboard

XMLUnit 2.10.0 doesn't work with NUnit 4.x

Open bodewig opened this issue 1 year ago • 2 comments

see https://github.com/xmlunit/xmlunit.net/pull/41#issuecomment-2276970751

bodewig avatar Aug 09 '24 04:08 bodewig

I was thinking if the Description could be set there would not be an issue. In the constructor for the static calls you could force a description but that is a breaking change, but it would work. The only other way is to add a different instance constructor that allows setting the description and then remove the static Instance calls. Again breaking change

ScottWrightWTG avatar Aug 09 '24 04:08 ScottWrightWTG

Worst case I'd create a new constraints-nunit4 project if we cannot find a reasonable way to make things work for 3.x and 4.x at the same time.

Right now I'm struggiling wth my local setup since I need an oldish Windows VM for the ancient framework versions XMLUnit still supports. It may take some time until I can really take a deeper look - in particular since time is something I currently lack anyway.

bodewig avatar Aug 09 '24 06:08 bodewig

I've been trying several approaches, the problem is you need to have the setter in order to override Description in NUnit 3.x - and at the same time the setter makes the override invalid in the NUnit 4.x case.

What I've got so far (in main, I really should have started on a branch and will continue experimenting there) is a working new constraints library for NUnit 4. NUnit 4.x targets .NET 6 and .NET Framework 4.6.3 as minimum and I'm currently struggling with finding an approach that doesn't force me to have even more solution files or manually execute single project builds.

bodewig avatar Mar 25 '25 07:03 bodewig

I have just published 2.11.0 with a new constraints assembly for NUnit 4.x

bodewig avatar Mar 28 '25 20:03 bodewig