Multiple arrangements/asserts per unit test?

Posted by lance on Stack Overflow See other posts from Stack Overflow or by lance
Published on 2010-05-17T19:26:43Z Indexed on 2010/05/17 19:30 UTC
Read the original article Hit count: 212

Filed under:
|
|
|
|

A group of us (.NET developers) are talking unit testing. Not any one framework (we've hit on MSpec, NUint, MSTest, RhinoMocks, TypeMock, etc) -- we're just talking generally.

We see lots of syntax that forces a distinct unit test per scenario, but we don't see an avenue to re-using one unit test with various inputs or scenarios. Also, we don't see an avenue to multiple asserts in a given test without an early assert's failure threatening the testing of later asserts (in the same test).

Is there anything like that happening in .NET unit testing (state- or behavior-based) today?

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about .NET