Giter Club home page Giter Club logo

Comments (5)

bodewig avatar bodewig commented on June 2, 2024 1

I completely understand the rationale. Fixing stuff that feels wrong is what major versions are there for. I'll try to ensure the xmlunit-nunit3-constraints library is going to work with NUnit 4.x as well and create a nunit4 one if that is necessary. Right now that doesn't seem to be the case as the libraries really only provide new Constraints..

Thank you!

from nunit.

OsirisTerje avatar OsirisTerje commented on June 2, 2024

It was done as part of a huge effort to make the library honor nullability, and also clean up some practices. The property should be read-only with the implemented class defining the value. I believe that was the reason. @manfred-brands , can you add to this ?

And sure, it should be listed.
Actually we might have some more of these, so thanks for alerting us on this one!

from nunit.

manfred-brands avatar manfred-brands commented on June 2, 2024

@OsirisTerje Yes this was done for nullability changes. The previous design relied on a derived class calling the protected setter which could not be guaranteed. It was either marking the property as nullable and add lots of tests on null or make it virtual and non-nullable. . As it is used in places like: Left.Description + " and " + Right.Description I choose for the latter.

For the same reason a change was made in the PrefixConstraint. Instead of relying on a derived class setting the DescriptionPrefix this now must be passed in to the PrefixContraint constructor.

from nunit.

OsirisTerje avatar OsirisTerje commented on June 2, 2024

Thanks @manfred-brands ! That added some more context to it.

@bodewig We'll add it to the release notes :-)

from nunit.

OsirisTerje avatar OsirisTerje commented on June 2, 2024

Fixing with PR nunit/docs#916

from nunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.