June 16, 2009

Good Search Capabilities Often Trump Good Logic

Recently, I learned a valuable lesson in modern programming efficiency: Problem-solving abilities often take a backseat to information retrieval and analysis. I was working on an application that saved images extracted from Word 2007’s OOXML file format, and received an application error: System.Runtime.InteropServices.ExternalException was unhandled Message=”A generic error occurred in

Isolating Dependencies in Tests Using Mocks and Stubs

o test a class, a developer must make sure that the class’s dependencies won’t interfere with its unit tests. Enter mocks and stubs. Unit tests check on the behavior of units. Think of a class as being a unit. Classes, more often than not, have external dependencies. Tests for such