Tuesday, March 18th, 2008
Back in September I ran into some issues using SN.EXE on Vista. SN would look like it had added a strong name verification skipping entry when really it hadn't. Doing the SN -Vr *,######### with the SN.EXE tool that ships with Visual Studio 2008 gives a much better behavior. ...
Tags: Gotchas, Visual Studio
1 Comment »
Tuesday, March 4th, 2008
As promised, another post on actually writing code as I've been busy trying the help the p&p DocTools project out the door. One of the final hurdles was getting the VSTO Word Document Add-In use delay signing. I was missing a key step in this process... Build ...
Tags: Coding, Gotchas, Visual Studio, VSTO
No Comments »
Wednesday, January 23rd, 2008
Fusion is Microsoft's name for the technology that resolves and loads assemblies requested by your application. It turns out that the .NET framework comes with a little application that allows you to see what caused each assembly in your application to get loaded, how it was loaded (context) and where ...
Tags: Gotchas, Visual Studio
2 Comments »
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 »
Tuesday, December 4th, 2007
One of the things that proved to be move complicated than it should have been when we were developing the DSLs for the Service Factory: Modeling Edition was renaming DSL model elements.
This sounds easy; open the DSL designer, rename the element and then transform all templates to regenerate the code. ...
Tags: Coding, DSLs, Gotchas, Software factories
No Comments »
Tuesday, November 6th, 2007
When I was testing the behavior of MSTest's DeploymentItem attribute I relied on fact that MSTest executes tests in a predictable order to figure out how the attribute works. Typically it seems to execute test methods in the order they appear in the class. You should never ever rely on this ...
Tags: Gotchas, TDD, xUnit
2 Comments »
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 »
Friday, October 5th, 2007
How would you expect of the following to behave?
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DependencyItemTests
{
[TestClass]
public class IgnoreAttributeFixture
{
[TestMethod]
[DependencyItemTests.Ignore]
public void IgnoreAttributeCheckingNotFullyQualified()
{
}
}
public class IgnoreAttribute : Attribute
{
}
}
I'd expect the IgnoreAttributeCheckingNotFullyQualified test to run just fine. But it doesn't, it's ignored (grayed out in the test view). ...
Tags: Coding, Gotchas, TDD
No Comments »