Unit Testing: Exposing Private Members
Visual Studio 2008 (Professional Edition and above) provides a really nice set of tools for development and execution of unit tests. It is, of course, easy for your tests to access the public...
View ArticleVS 2010: Test View Error
I was working on an application in Visual Studio 2010 today, opened the Test View window and got an exception as shown below. Here is the first part of the error in text: "An exception was encountered...
View ArticleLayout of Test Explorer in Visual Studio 2012
In Visual Studio 2012, the Visual Studio 2010 Test View window has been replaced by a new Test Explorer window. By default, it appears on the left side of the Visual Studio Interactive Development...
View ArticleSearching and Grouping in VS 2012 Test Explorer
Visual Studio 2012 Test Explorer has extensive searching and limited grouping capabilities. (Visual Studio 2010’s Test View window had more grouping options by way of its many sorting parameters.)...
View Article101 Ways to Run Tests with Visual Studio 2012
OK 101 is an exaggeration, but there are many ways to run your tests in Visual Studio 2012. From the test code file While you are writing or editing a test method, you can right click anywhere within...
View ArticleTest Explorer in Visual Studio 2012
One of the new things about testing in Visual Studio 2012 is that it is now available in *all* editions of Visual Studio all the way to Visual Studio Express! The Test Explorer in Visual Studio 2012...
View ArticleRunning Your Unit Tests Continuously
One of the new unit testing features in VS 2012 (Premium or Ultimate) is the continuous test runner. When turned on, it automatically executes your unit tests after every successful build. Digressing a...
View ArticleWhat is Defensive Coding?
From Wikipedia (as of 4/14/14): … an approach to improve software and source code, in terms of: • General quality – Reducing the number of software bugs and problems. • Making the source code...
View ArticleCode Quality and Automated Code Testing
I’ve heard it said that the top three techniques for improving code quality are: Unit testing Unit testing Unit testing There is no better defense for the quality of your code than a set of automated...
View Article"I Don’t Have Time for Unit Testing!"
So, be honest, when you hear someone talk about unit testing … what is your first thought? Is it: “I just don’t have the time to do unit testing”! Or “Our management will never approve the time for...
View Article
More Pages to Explore .....