Skip to content

Making Constraint.Description abstract breaks backwards compatibility #4610

@bodewig

Description

@bodewig

Hi,

over at XMLUnit.NET we've received a report our Constraints would no longer work with NUnit 4.x (see xmlunit/xmlunit.net#40 ).

The Constraint class' Desciption used to be virtual with a protected setter and XMLUnit's constraints used that setter instead of overriding the property. The property has now been changed into an abstract property with bf5d0dc nine months ago. Of course I can override the property in XMLUnit's constraints and it should work with 3.x and 4.x, but before I do so I wanted to ask whether this change has really been made intentionally. If so; I'd ask you to list it as a breaking change, I wouldn't be surprised if XMLUnit was not the only library providing IConstraint implementations that is affected by this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions