Stephen A. Fuqua (saf)

a Bahá'í, software engineer, and nature lover in Austin, Texas, USA

Best Practices in Test-Driven, Object Oriented, Green- and Brownfield Development

Developing clean, testable, code has been a passion since my first full-time job as a programmer, when I inherited a mess of spaghetti-code in the form of a large ASP classic web application. Since 2009 I’ve written written more than a dozen blog posts on unit testing, created several presentations, and evangelized unit testing at every opportunity.

As with most fields of practice, some techniques are continuously relevant while others change with greater experience, experts’ insights, and advances in the available tools. This article aims to be a living document capturing my understanding and advocacy of best practices with respect to development of high-quality, easily-testable, object oriented code. It will bring together all of the best parts, and hopefully correct the worst, of my technical blogging background.

While all of the examples are in C#, the principles generally transcend the specific language.

Contents

  1. SOLID and Unit Testing
  2. Legacy Refactoring
  3. Test-driven Development
  4. Patterns for Writing Clean Test Cases
  5. Toolkit for .NET Unit Testing
  6. References

Posted with : Software Testing, General Programming, General Programming