I have been working all weekend trying to finish up a project, so not much hands-on Unit Testing this weekend. However, several good articles have been published this weekend from other developers about Unit Testing:
1) Simplified Database Unit testing using Enterprise Services - by Roy Osherove ”In this article I’ll show what problems we encounter today when we perform unit tests against database related component, and the various ways used to solve these problems. I’ll also show a new method to solve these problems, which is far easier and simpler than any of the others. At the end of this article you will have the tools necessary to do simple and easy unit tests against database related components without the need to write messy cleanup code after your tests.” - Roy
2) Part 1: Automating Unit Tests with a Base Class - by Steve Eichert “Unit testing is quickly gaining traction within the .NET community. By unit testing business objects developers are finding they are able to reduce the number of bugs they write, and improve the overall design of their applications. The benefits of unit testing are well documented; however, unit testing objects doesn’t come free of charge. Writing unit tests for each method of a business object is a time consuming task and often requires a lot of repetitive code. This article discusses a method that can help reduce the leg work required to create a suite of unit tests for testing basic CRUD (create, read, update, delete) operations on business objects. Removing the overhead of writing individual tests for each of the CRUD operations allows the unit testing effort to be focused on the area that it's most needed, the business logic of the application.” - Steve
3) Part 2: Automating Unit Tests with a Base Class - by Steve Eichert “Part 1 of Automating Unit Tests with a Base Class provided a brief summary of the problems we run into while writing unit tests for our business objects, and discussed why it's important that the database be included. In this post I'm going to describe the process of writing unit tests for business objects. In part 3 I will detail how we can automate the testing of our CRUD operations via a base unit test class.“ - Steve
4) Part 3: Automating Unit Testing with a Base Class - by Steve Eichert “In Part 1 of Automating Unit Testing with a Base Class I provided a brief introduction to Unit Testing, provided an overview of the problems that unit testing business objects present, and briefly discussed why I include the database in my unit tests. In part 2, I provided an overview of the process I've followed in testing the CRUD operations of my business objects. In this final installment I'm going to discuss how I've simplified the testing of basic CRUD operations on my business objects by creating a base class for my business object unit tests.” - Steve
|
Main


Health & Fitness

 




 
ASP.NET MVC
Orchard CMS
Categories
|