The native unit testing capabilities in VS11 beta are very cool indeed. Being mainly a managed code developer, I was left wondering how to pass a test if an expected exception is thrown (a al the [ExpectedException] attribute Iâve used with MS-TEST in managed code unit tests. With the native unit testing capabilities in VS11, there is no ExpectedException attribute, but there is a static Assert:
{{#tags}}- {{label}}
{{/tags}}