Following on from my last post in the MbUnit 101 series I’ll cover MbUnit’s attributes. MbUnit has the basic Test attribute.
The additional meta allows for filtering and ordering in a test runner (for example Echo or Icarus). We can also control how MbUnit treats what it tests.
MbUnit also has exception control in the attribute model. Taking the following class.
We can do the following.
Note that MbUnit also offers exception support in the Assert model as noted in the Assert.Throws. Finally MbUnit has support for threaded runs over tests.
These examples and more can be found on github.