Sunday, 28 September 2008

MSTest – ExpectedException and exception message.

Since this is my first blog post ill start out small enough.Recently we have migrated our unit test from NUnit into MSTest. Although by large the transition was quite smooth, one of the more annoying issues is the different behavior of the ExpectedException attribute. An intended design or an oversight by MS? I would (wishfully) think the latter is the case. But in any case I would say its a Mistake.In any case, since MsTest does not support asserting on the exception message, we had to revise some of the tests. The revision itself is quite simple, just need to wrap the test code with try catch clause. Something like:[TestMethod]public void SomeTest(){ try { //The test code: //... //... Assert.Fail("We should not get here"); } catch(SomeExceptionType...

Saturday, 27 September 2008

First Post (Introduction)

Hi, my name is Lior Friedman and I'm a software developer.This blog is all about me trying to recapture and share my past (and future) mistakes, in the hope that putting them on paper will help me remember and avoid repeating them in the future. I will try to focus on my own personal mistakes, but I’m sure that from time to time I will share those I have seen made around me.I've been developing software in various fields and technologies for more then 10 years now (wow time do fly), and during the way I've made more then my fair share of errors along the way. The bigger of them are what got me to look up agile methodologies and so far I have found those much more appealing and effective then the rest.So do expect a good share of philosophy here, I will however always try to relate everything...

Pages 381234 »
 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Walgreens Printable Coupons