|
Ah, good point. This would not be on by
default, but would require the developer to explicitly turn it on. Whether
this is a good or bad practice for a developer to use this is debatable, but
not clear cut, thus we give the power to the developer to choose to use this
and try not to be too paternalistic since we know many developers *would* have legitimate useful uses of this.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Brown You note, that it _may_ invalidate the
results. It may just as well not. My gut reaction to the proposal
was much like yours initially. So I started thinking. Quite often
when I have assertions over some compound state I don't get to see enough
information in the report. It only shows me where part of the state
diverged from what was expected. So I end up having to use the
debugger. Bother. On reflection I believe that a controlled
facility for compound assertions can be of great value. So keep in mind what I
proposed. The test writer can explicitly declare blocks within which
multiple assertions will be allowed to run. So if the test writer wants
to shoot himself in the foot he can. Thinking ahead a bit, I believe a
mechanism like this can be used to support extended reporting facilities
because if we can intercept assertion handling behavior we can log more details
about them. So building support for this feature into the core can enable
other novel extensions. Jeff. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/MbUnitUser -~----------~----~----~----~------~----~------~--~--- |
- MbUnit Re: Mutiple asserts in a single fixture Jeff Brown
- MbUnit Re: Mutiple asserts in a single fixture Phil Haack
- MbUnit Re: Mutiple asserts in a single fixture Andrew Stopford
- MbUnit Re: Mutiple asserts in a single fixture Jeff Brown
- MbUnit Re: Mutiple asserts in a single fixture Phil Haack
