MbUnit 101: Attributes

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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s