Skip to content

4.6 change in Do behavior broke my unittests #1092

Answered by zvirja
flierh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @flierh,

Thanks for reporting the issue. I've investigated it carefully and found that indeed the observable behavior has changed. It's a pity we didn't have tests covering that, so it sneaked out from my eyes 😢 I've created an issue to add tests for that.

Sorry for breaking your existing code withing the same major version. If I had tests, I would probably resist from the breaking changes even if it looked like a bug.

In fact, the new behavior is correct and that's the previous behavior which is wrong. The order of the callback invocations is following:

  • Constructor
  • Do() callbacks
  • With callbacks
  • AutoProperties callbacks

We have the issue #988 to add a callback after auto-properties a…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aivascu
Comment options

You must be logged in to vote
1 reply
@MisinformedDNA
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1092 on December 22, 2020 08:50.