Personally, I do not see any problems with this. If the desired for all tests is not fulfilled, some preconditions are not fulfilled, which meets the requirement. My only thought here is that you should check the preconditions without checking the code under test. Otherwise, this would seem to be misleading, and I would suggest setting a condition in the method that is called from each test.
source share