Last Updated: 26 May 2014 14:35 by Stefan
Created on: 09 Apr 2013 13:14
Type: Feature Request
Insuring order of called methods while asserting
Using InOrder() in the arrange sometimes may be not appropriate. I would like to be able to do this in the assert. Instead of having the following workflow:
//Arrange (initial conditions)
// setup expected results (ordering)
// Act
// Assert

, I will have this:
// Assert (expected results in order)
1 comment
Posted on: 26 May 2014 14:35
Asserting the order at the end robs you of the opportunity to break into the debugger at the point where the expected order gets violated. When is it inappropriate to set the expected ordering in the arrange phase?