views:

412

answers:

3

If you want to create a custom attribute for MS test (say [Repeat(3)] how would you do that?

A: 

looking more, here is one possible place to start: Peli's blog

I'm still looking for other good resources or examples.

RoyOsherove
+3  A: 

I don't think you will like the answer: there is no supported way. However, there is a codeplex project MSTestExtensions implementing a work around and a blog post about how MSTestExtensions works. (Using ContextBoundObject)

Ryan Rinaldi
I don't think that is correct, since MS has documentation that allows such extensibility (though it sucks..)http://msdn.microsoft.com/en-us/library/bb165914(VS.80).aspxRoy
RoyOsherove
A: 

Roy, If you are using Typemock Isolator, you can use the AOP Decorator to extend any test framework.

I'm looking for built in extensibility mechanism, not an external work around. thanks :)
RoyOsherove