Geeks With Blogs
Chris Falter .NET Design and Best Practices Testing & Debugging A good developer knows how to test and debug!
How to Use Extension Methods and Lambda Expressions to Write Elegant Unit Tests

Some combinations go together well: New York, Yankees, and pinstripes; Oscar Peterson, Ray Brown, and Ed Thigpen; a loaf of bread, a jug of wine, and thou. To this list you may now add: unit tests, extension methods, and lambda expressions. Read on if you're interested in writing elegant unit tests.

Posted On Wednesday, December 30, 2009 3:23 PM

How to Reuse Code Without Creating an Implicit API

If you're writing a reusable framework, you might want to avoid declaring a class or method as public if you don't want to support it as part of the interface. At the same time, you might want to use it from a different internal assembly--especially if you're writing tests. Believe it or not, there is a way to achieve both seemingly contradictory ends in one codebase. Read on to find out how you can have your cake and eat it, too!

Posted On Sunday, March 29, 2009 2:44 PM

Why You Should Consider Using FIT

Have you ever had difficulty translating a set of requirements into a set of tests? Do you find regression testing to be a major bottleneck whenever you implement changes in your system? (Or do you have quality issues because you forgo regression testing?) Does your development team ever dump complex functionality into a "smart UI" that becomes difficult to maintain and extend? If you answered yes to any of these questions, you should check out FIT (the Framework for Integrated Testing).

Posted On Tuesday, February 5, 2008 4:12 PM

A Tool for Troubleshooting Web Apps and Web Services

Recently I discovered a tool that I had needed for a long time. Fiddler, a freeware product created and supported by Microsoftie Eric Lawson, can be used to debug HTTP traffic from any web browser (or client application). Here's how you can use it: 1. View/Analyze HTTP traffic.... 2. Generate test scripts....

Posted On Monday, January 28, 2008 7:20 AM

Test-Driven Design: Make Sure You Fail!

The moral of this tale is simple: in test-driven design, you have to fail before you can succeed. The idea behind test-driven design (TDD) is to incorporate testing into the process of constructing your system, rather than waiting for developers to check in their code and to build a system that someone else tests. TDD has some advantages worth considering...

Posted On Saturday, October 20, 2007 1:39 PM

How To: Write a Unit Test for Multi-Dimensioned Output
One of the cool features of Visual Studio 2005 is that it can generate a unit test stub for a class or method. However, I recently discovered that the Unit Test plug-in does not know how to auto-generate an assertion for a method whose output includes a multi-dimensioned out parameter or return value. Here's the relevant stub code that VS 2005 generated for one of my methods whose output includes a multi-dimensioned array: // generated code that creates a class instance called "target", plus other ......

Posted On Friday, May 4, 2007 8:42 AM

Copyright © Chris Falter | Powered by: