c# - Mstest 10.0.1.0 is not recognizing ExpectedException -


mstest 10.0.1.0 not recognizing expectedexception.

i used msbuild generate unit test dlls.

it seems [expectedexception] not working:

[expectedexception(typeof(argumentnullexception))] public void test(){     throw new argumentnullexception("test"); } 

failed when run mstest.

the unit test project referencing

microsoft.visualstudio.qualitytools.unittestframework.dll 10.0.1.0

(^ got info decompiling)

question:

  1. is bug of microsoft.visualstudio.qualitytools.unittestframework.dll 10.0.1.0?

  2. how can make unit test project use fixed version 10.0.0.0?


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -