Jamie Laflen extols the benefits of TDD when applied to database development-and supplies some useful techniques along the way.
MSDN Magazine Launch 2008
View Complete Post
Creating and using mock component servers simplifies unit testing. Use these examples to get started.
MSDN Magazine September 2007
The problem: unit testing libraries, especially data access components, that have a complex set of dependencies. The solution: providing a dynamic mock implementation of your data access classes. Here the author explains just how to make testing easier and more reliable using NMock.
MSDN Magazine October 2004
I'm using VSTS 2K8 and I've set up a Unit Test Project. In it, I have a test class with a method that does a simple assertion. I'm using an Excel 2007 spreadsheet as my data source.
My test method looks like this:
[DataSource("System.Data.Odbc", "Dsn=Excel Files;dbq=|DataDirectory|\\MyTestData.xlsx;defaultdir=C:\\TestData;driverid=1046;maxbuffersize=2048;pagetimeout=5", "Sheet1", DataAccessMethod.Sequential)] [DeploymentItem("MyTestData.xlsx")] [TestMethod()] public void State_Value_Is_Set() &nbs
Fault injection testing is the process of deliberately inserting an error into an application to determine whether it deals with the error properly. We'll explain how you can introduce faults into .NET applications at run time using the Managed Code Fault Injection APIs of the TestApi library
MSDN Magazine August 2010
Silverlight greatly simplifies the process of building rich Web applications, and we'll walk through an example of using Messages as a quick method of interactively testing simple Silverlight apps.
MSDN Magazine March 2010
There are many ways to test WCF services, but the socket-based approach is flexible and very useful for security and performance testing. We show you show you how to test a WCF service using a network socket based approach.
MSDN Magazine February 2010
Creating and maintaining a unit test suite for legacy code can be a challenge. Pex automatically produces a small test suite with high code and assertion coverage.
MSDN Magazine December 2009
In this month's column, James McCaffrey explains exactly what pairwise testing is and provides you with complete C# source code for a production quality pairwise testing tool named QICT.
This column presents an approach to Antirandom (AR) testing the author calls partial AR string testing, which can be used to test a wide range of software systems.
MSDN Magazine October 2009
This month we show you how to use F# to perform HTTP request-response testing for ASP.NET Web applications.
MSDN Magazine July 2009
Use Test-Driven Development with mock objects to design object oriented code in terms of roles and responsibilities, not categorization of objects into class hierarchies.
MSDN Magazine June 2009
This month we demonstrate how easy it is to use IronPython to test .NET-based libraries.
This article describes features introduced in the GDR for Visual Studio Team Server Database Edition.
Jamie Laflen and Barclay Hill
MSDN Magazine March 2009
Because Virtual Server is built upon a set of COM modules, you can automate the creation and testing of virtual machines. Here we use Windows PowerShell to run the tests.
Dr. James McCaffrey and Paul Despe
MSDN Magazine December 2008
There is a large body of research on group techniques to determine the best alternative from a set of options. Dr. James McCaffrey outlines five of them.
Dr. James McCaffrey
MSDN Magazine November 2008
Matt Milner takes a look at some of the challenges and techniques related to testing Windows Workflow Foundation activities, workflows, and associated components.