11/14/07 – Updated to fix a problem where Windows Live Writer didn’t upload the whole article At the end of the last post, we had automated tests in place that showed our business logic correctly triggered a window to open, and that the UI implemented the logic correctly. However, that window didn’t do much of…
TDD of a WinForm app – Part 3 – Adding Account Data
So we demo’d the application for our customer, and he liked the direction so far. It wasn’t much functionality, but it did confirm that it was what he wanted. He would like to see the Account screens finished so that he can try out entering accounts with all of their data. So that’s what we’ll…
TDD of a WinForm app – Part 2 – Presenting the Account Data
In our last section, we put together a list of accounts and made sure we could search them in the way our customer wanted. To recap, our customer needed a way to enter in accounts and be able to search them by phone number or name. From a UI perspective, this should be accomplished using…
TDD of a WinForm app – Part 1 – Searching for Accounts
As I stated in the introduction, we’re building an app for my father-in-law who runs a small appliance repair business. His biggest pain point is that he captures all of his customer data on paper invoices, and so has no easy way to look up customer information. So his first need was a way to…
TDD of a WinForm app – Part 0 – Introduction
When you do any kind of computer work – or really do anything where you have a specific skill – you get asked to do some “family work”. This is usually some family member that needs something done to their computer, or something else, and wants you to do it for them. In our family,…
How to Test something that closes the stream?
A question came up on the TDD mailing list earlier this week – how do you deal with an application that closes your memory stream before you have a chance to assert what is going on with it? The solution the poster did was to have a byte array and have a stream on that….
Test Driven Development with Visual Studio for Database Professionals posted on InfoQ
Just a quick note that a follow-up article to my TDD with DBPro article was posted on InfoQ. Feel free to go check it out! Test Driven Development with Visual Studio for Database Professionals
Discovering who is holding a reference to a file with Process Monitor
A common question I see come up is someone working with ASP.NET tries to push a new deployment to their server but then sees errors from aspnet_compiler or during JIT which says that the compiler can not access certain files in either the web root or the Temporary ASP.NET Files. Almost always this is caused…
Surviving in a Company
Whether you are in a small or large company, eventually you run into politics, and if you are really lucky, backstabbing, poor management and all sorts of other fun stuff. Some people get upset, and others start blogs. But when you get to the other side, you get to dispense with great advice like this: …
Adding a List of Links to a TFS Work Item
I had a question from a customer who needed to have a default list of links displayed on their Work Item in TFS. While one would think the LinksControl would be the ideal place, there isn’t a good way to insert links to it without resorting to writing custom code. Fortunately there is an easier way…