Skip to content

ExpectedException Support #12

@AbhitejJohn

Description

@AbhitejJohn

Description

Add back support for Expected Exception which was made obsolete. This would helps in two ways:

  1. Transition from V1 would be made much simpler.
  2. The Create IntelliTest Wizard which currently only generates method level attributes would continue to work until fixed later on.

Steps to reproduce

  1. Create a Unit Test project.
  2. Add the V2 test fx and adapter to it.
  3. 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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions