Monday, January 7th, 2008
Consider the following test... [TestMethod]
[ExpectedException(typeof(ArgumentException))]
public void TestExpectedException()
{
throw new ArgumentException("Bad argument");
}
All looks pretty trivial right? You'd expect this to pass and indeed on my VS 2008 box it works fine.
If you've upgraded your test project ...
Tags: Gotchas, TDD, Visual Studio
No Comments »
Friday, January 4th, 2008
Here's something we at p&p ran into the other day while moving some of our unit tests from Visual Studio 2005 to 2008. This was actually on the EntLib forum and a bug logged by the community against the issue with the MSTest team. Unfortunately it didn't get fixed but ...
Tags: Gotchas, TDD, Visual Studio
5 Comments »
Monday, December 24th, 2007
I ran into a problem this morning where Visual Studio 2008 wasn't letting me debug through some source files. These files weren't part of my solution, I was getting them from an external share. I'd checked all the obvious things; enable just my code was disabled and the symbols were ...
Tags: Gotchas, Visual Studio
1 Comment »
Monday, December 17th, 2007
I've never been completely happy with the way Visual Studio cleans solutions. If you take a look at how the Clean target is defined in Microsoft.Common.targets you'll see its doing some clever stuff to look at what the last build produced and remove that. My experience is that over time ...
Tags: Coding, Visual Studio
No Comments »
Thursday, December 13th, 2007
If you've ever tried to apply the same set of settings to all the projects in a solution you'll know it can be somewhat time consuming. You have to edit each project file and change it's settings. Let's say you'd like to run code analysis on Release builds but ignore ...
Tags: Coding, Visual Studio
3 Comments »
Thursday, December 6th, 2007
It was finally time to re-pave my machine which had been getting a bit sluggish of late. I started off with Peter's machine repave post and created my own backlog of things I install. A while back a blogged about tools for personal coding projects which proved pretty popular. I ...
Tags: Coding, PowerShell, Visual Studio, xUnit
1 Comment »
Friday, October 26th, 2007
As is always the way. In the process of writing my last post I found something else that has caught me out in the past.
Now it's important to note that this is by design. VS Pro 2005 does not support testing projects. The really good news is that it will ...
Tags: Gotchas, TDD, Visual Studio
No Comments »
Monday, October 1st, 2007
VSSDK Assist is a set of utilities and tools to help people who want to start extending Visual Studio. Pablo wrote this in his "spare time" while helping us ship Service Factory: Modeling Edition! He gave a talk to the p&p team about some of the things it lets you. ...
Tags: Coding, Software factories, Visual Studio
No Comments »
Thursday, September 27th, 2007
Software development is full of pitfalls. Sometimes it's the little things that can have you up burning the midnight oil. The dumb stuff that in the cold light of day you wonder how you ever missed. So when you read some of these posts you may end up thinking "Who ...
Tags: Coding, Gotchas, Visual Studio
1 Comment »
Saturday, April 7th, 2007
For those of you who haven’t fallen madly in love with the default code diff’ing tool in TFS he’s how to use WinDiff or another diff tool with TFS…
“Just go to Tools->Options->Source Control->Visual Studio Team Foundation Server and click on Configure User Tools to specify the diff tool of ...
Tags: Coding, TFS, Visual Studio
No Comments »