You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add back support for Expected Exception which was made obsolete. This would helps in two ways:
Transition from V1 would be made much simpler.
The Create IntelliTest Wizard which currently only generates method level attributes would continue to work until fixed later on.
Steps to reproduce
Create a Unit Test project.
Add the V2 test fx and adapter to it.
Add a test method which throws an exception and add an ExpectedException attribute targeting the same exception.
Expected behavior
The test should pass.
Actual behavior
The test fails and the build throws a warning that this is an obsolete attribute.
Environment
Please share additional details about the test environment.
Operating system, Build version of vstest.console, Package version of MSTest
framework and adapter
We should add back the functionality, but still maintain the Obsolete tag. Obsolete just indicates that functionality is available but there is a better alternative, and the current one may be removed in any later version.
Was considering that but then intelliTest will generate tests with this attribute by default and a build of those test projects would result in unnecessary warnings. Last we checked fixing intelliTest to accommodate a Assert.ThrowsException<> might not be a very trivial fix.
Activity
codito commentedon Sep 19, 2016
We should add back the functionality, but still maintain the Obsolete tag.
Obsoletejust indicates that functionality is available but there is a better alternative, and the current one may be removed in any later version.AbhitejJohn commentedon Sep 19, 2016
Was considering that but then intelliTest will generate tests with this attribute by default and a build of those test projects would result in unnecessary warnings. Last we checked fixing intelliTest to accommodate a Assert.ThrowsException<> might not be a very trivial fix.
AbhitejJohn commentedon Oct 5, 2016
This is fixed in the latest TestAdapter code in MSTest repo. Will port it over to GitHub.
Address review feedback on RFC 011