Skip navigation.

Archives

Pex It: Testing IronPython Code!



This posting is provided "AS IS" with no warranties, and confers no rights.

Pex It: ExpectedException 'a la' Pex

So how do you write negative test cases with Pex? Here's a nice solution I was working on. I'm wondering

Traditional ExpectedExceptions style

Let's test the constructor a type Foo that takes a reference argument. We expect to throw a ArgumentNullException when null is passed. Therefore, we could write

Lightning Shows

Summary: Google and blogorrhoea have turned many conference tutorials into anachronisms. I propose an alternative that’s more like a Lightning Talk session.I’m reviewing a pile of submissions to Agile2008. (You can too!) I just noticed a pattern in my comments. Tutorials often have this structure:Here’s a problem that needs solving. I have a solution.Here I [...]