The unit tests for NUnit contain an interesting pattern for verifying exception details. The abstract class MessageChecker in assembly nunit.framework.tests implements IExpectException, an interface introduced with NUnit 2.4. Test cases in derived test fixtures set the protected field expectedMessage to the expected exception message which can span several lines or include data from the test [...]
Categories
- .NET Development (14)
- Dynamic Languages (1)
- TDD (13)
- Uncategorized (1)
- VCS (1)
-
Recent Posts
-
Recent Comments
- NUnit vs. MbUnit - sfeldman.NET on RowTest Extension for NUnit
- andreas-schlapsi.com » RowTest Extension 1.2.2 on RowTest Extension for NUnit
- andreas-schlapsi.com » RowTestExtension 1.1.0 released on RowTest Extension for NUnit
- andreas-schlapsi.com » RowTest Extension 1.2.0 on RowTest Extension for NUnit
- andreas-schlapsi.com » RowTest Extension 1.2.1 on RowTest Extension for NUnit
Tags
asp.net mvc Bazaar dlr ironpython ironruby launchpad legacy code mono mvc mvccontrib NUnit nunitaddin python rowtest Ruby silverlight TDD testdriven.net unit-testing
