Mstest 10.0.1.0 is not recognizing ExpectedException.
I used Msbuild to generate unit test dlls.
It seems that [ExpectedException] is not working:
[ExpectedException(typeof(ArgumentNullException))]
public void Test(){
throw new ArgumentNullException("test");
}
failed when run by mstest.
The unit test project is referencing
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 10.0.1.0
(^ I got this info by decompiling)
Question:
Is this a bug of Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 10.0.1.0?
How can I make the unit test project to use fixed version 10.0.0.0?