How do you create a custom attribute for MS Test?
-
02-07-2019 - |
Question
If you want to create a custom attribute for MS test (say [Repeat(3)] how would you do that?
Solution 3
looking more, here is one possible place to start: Peli's blog
I'm still looking for other good resources or examples.
OTHER TIPS
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)
Roy, If you are using Typemock Isolator, you can use the AOP Decorator to extend any test framework.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow