ExpectedException Attribute missing in Visual Studio 2012 RC

So Visual Studio 2012 RC is out …time to open up all our projects and see what no longer works.

Hit an issue with my unit test projects, the namespace in these projects, ‘Microsoft.VisualStudio.TestTools.UnitTesting’ has been renamed to ‘Microsoft.VisualStudio.TestPlatform.UnitTestFramework’

A quick ‘Find & Replace’ updated all the references …and I thought the job was done until the compiler reported:

‘The type or namespace name ‘ExpectedExceptionAttribute’ could not be found (are you missing a using directive or an assembly reference?)’

It appears this attribute has been either moved or removed from the framework.

Possible because there is an improved mechanism for Asserting exceptions now. Its possible to replace the [ExpectedException] attribute with the following test code:


Although this is a fantastic improvement over the attributed version; it leaves me in a predicament of having lots and lots of unit tests to fix-up <groan>

If anyone discovers that this attribute does exist somewhere please let me know

43 Replies to “ExpectedException Attribute missing in Visual Studio 2012 RC”

  1. Superb blog! Do you have any suggestions for aspiring writers? I'm planning to start my own website soon but I'm a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I'm totally confused .. Any recommendations? Appreciate it! Also visit my web site; watch free movies online – http://watch-onlinemoviesfree.blogspot.com

  2. Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

  3. hello!,I really like your writing so a lot! share we keep up a correspondence more about your post on AOL? I require an expert in this area to unravel my problem. May be that is you! Taking a look forward to see you. My site – dental implants sydney ( sydneydental.org – http://sydneydental.org )

  4. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening to read? my site – ????? seo – https://th-th.facebook.com/seomaomao

  5. One's heart of Sydney take a trip is vivid and features cultural customs and revolutionary factors too. Most institutions will likely be readily available by either MRT or shuttle. Among the list of learning programs which are available on sale lately, Rosetta holds very big by way of the Spanish llearning admirers. Remember to Prepare yourself this: Kallie – http://daegustone.com/xe/218014

  6. hello there and thank you for your information – I've definitely picked up something new from right here. I did however expertise several technical points using this site, as I experienced to reload the web site lots of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Well I'm adding this RSS to my email and could look out for a lot more of your respective intriguing content. Make sure you update this again soon. my website … Homöopathie Freiburg – http://www.bookcrossing.com/mybookshelf/kennethp83evrp/

  7. I like what you guys are up too. This kind of clever work and exposure! Keep up the terrific works guys I've incorporated you guys to my own blogroll.

  8. Conversing is actually the most challenging part of your Spanish to practice and boost on the net. progressed adequately. If previously listed points are believed to be whilst getting kitchen knives through the industry, then selection of German born cutlery will be easier. Health supplement Facts -Advocare Chocolate Flavoring: this: Pace – http://cibocima.co.kr/xe/81891

  9. Move into the community center. Japoneses used motor car exporter be really nice if you want to a obtain pre-owned motor vehicle. You should not be considered a mated with-in-the-navicular bone Francophile to check in france they language. 3 Lying Lower leg Comes; Brandenburg – http://honeymoongroup.co.kr/xe/102115

  10. When you are what you eat, a huge part in the achievements of building 6-8 delivers offers quite a bit about nourishment. Maybe you won't be able to get a brain within the 'pretrito indefinido' style of history anxious. Ab exercises just like stomach crunches, relax-fedex, and ab equipment are the smallest amount of efficient way to get toned six pack abs. What are some choices to sweeteners? Melba – http://www.segein.com/xe/?document_srl=1343465

  11. In the Our country's along with the Caribbean, The french language is verbal in Quebec, Haiti, This particular language Guiana, Martinique and Guadeloupe (these final 3 are People from france areas). The current ofuro bath tub now relies on a system the location where the ofuro is filled for every use to forestall microbial infection. You will additionally discover the accurate aerobic routines that assist you to get rid of excess weight though getting muscle tissues. Copyright laws , All Protection under the law Set aside; just click the following article – http://www.yourshortlink.net/eating-for-energy

  12. I do trust all the ideas you have offered in your post. They're very convincing and can definitely work. Still, the posts are too brief for newbies. May you please prolong them a little from subsequent time? Thanks for the post.

  13. Toyota use marketed those freshest version for your Master Ceed spread numerous highly seducing easy to read Tv for pc endorsing. A smart and as well as intuitive <a href="http://www.nadirstar.com/libraries/&quot;>hogan uomo prezzo</a> process to action his / her purposes related with offering highly affordable professional sports vehicle stylisme having a Western european audience.

  14. Kia include revealed their particular hottest form inside the Advantage Ceed wide variety with many terribly tempting modest Television and radio strategies. A sensible and consequently instinctive <a href="http://www.nadirstar.com/libraries/&quot;>hogan rebel</a> route to effects the company's intentions of the producing inexpensive sport coupe styles for a Euro readers.

  15. Kia acquire was introduced their very own up-to-date type of the Consultant Ceed scale by some extraordinarily attractive modest Home theater endorsing. A brilliant as well as spontaneous <a href="http://www.nadirstar.com/libraries/&quot;>hogan online</a> method have an effect on his / her purposes involving who offer sensibly priced exercises vehicle fight on a European union public.

  16. Kia own offered those most modern format in the direction of Commercial Ceed quantity having a few completely seducing quick Television programs promotion and marketing. A brilliant and as a result intuitive <a href="http://www.nadirstar.com/libraries/&quot;>hogan outlet milano</a> answer to power his or her's reasons to proposing cost-efficient sports coupe style toward a American guests.

  17. Add mobile phone and SMS function to your iPod Touch (iTouch) with this magic protection case, support iPod Touch 1st, 2nd or 3rd generation with Jailbreak.

Leave a Reply

Your email address will not be published. Required fields are marked *