RoyOsherove
RoyOsherove

Reputation: 3269

How do you create a custom attribute for MS Test?

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

Upvotes: 12

Views: 3113

Answers (3)

Sam
Sam

Reputation:

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

Upvotes: 0

Ryan Rinaldi
Ryan Rinaldi

Reputation: 4239

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)

Upvotes: 3

RoyOsherove
RoyOsherove

Reputation: 3269

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

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

Upvotes: -1

Related Questions