title: ExpectedException on TestMethod Visual Studio 2010
body: <p>Today I upgraded my solution with all the underlying projects from VS2008 to VS2010. Everything went well except for my unit tests.</p>
  
  <p>First of all only the web projects had as target framework .NET 4. All the other projects still had .NET 3.5. I changed them all to .NET 4.</p>
  
  <p>Now when I debug my unit tests it breaks on every exception. In 2008 it just wouldn't pass and tell me that an exception occurred. Even when I have the ExpectedException attribute defined it stops debugging on every exception.</p>
  
  <p>And example of one of my tests:</p>
  
  <pre><code>[TestMethod]
  [ExpectedException(typeof(EntityDoesNotExistException))]
  public void ConstructorTest()
  {
      AddressType type = new AddressType(int.MaxValue);
  }
  </code></pre>
  
  <p>The EntityDoesNotExistException is a custom exception and inherits Exception.</p>
  
  <p><strong>Edit</strong>
  I looked at the Exceptions settings (ctrl+alt+e) in 2008 and 2010. In both versions the settings are the same. However in 2008 the debug doesn't break when I have the ExpectedException attribute. In 2010 it does break.</p>