Take the 2-minute tour ×

Our team is looking to switch from using mbunit to mstest, but there appears to be some disconnect between the two.

Does anyone know how to simulate the CombinatorialTest and Factory attributes from mbunit when using mstest?

I think that is our only stumbling block before doing the switch.

share|improve this question
Why the hell would you want to move from a good rich test framework to a rather limited one is the real question. –  craigb Oct 22 '08 at 2:47
@craigb, the CodedUI library would be one strong reason ... –  Hamish Grubijan Jan 29 '11 at 22:32
in theory it is possible to extend MsTest attributes. If you succeed at any of it, then I would love to know how you did it. mstestextensions.codeplex.com –  Hamish Grubijan Jan 29 '11 at 22:34

1 Answer 1

up vote 5 down vote accepted

As far as I'm aware, you basically need to write a test method that generates all of the combinations (or calls the factory and iterates through the items) that calls your original test (now no longer a test method) a bunch of times.

Unfortunately, these do not show up as individual tests in results - they show up as just one test- so you have to pretty explicit in your error output. This means that as with this approach, as soon as one fails it stops the rest (you can get around this by keeping a big list of results, but that's yet more overhead)

I'd think twice before going to mstest right now unless you have to - the lack of a test runner on a clean machine is killer, and it's neither extensible nor frequently updated.

share|improve this answer

Your Answer


