Skip to content

Expose ExpectedResult to the TestContext #4101

Description

@garyhuntddn

We have a scenario where we have extensive test cases which use the ExpectedResult argument of the TestCase attribute.

Within those test we have a new need to be able to assess the ExpectedResult.

Rather than convert the tests so that the ExpectedResult is passed in as an argument and an assert performed we would like to be able to examine the ExpectedResult in the same we can see the MethodName and the Arguments.

We've been able to hack together a solution using reflection against the _test field and the internal ExpectedResult property of the TestMethod class but it would be nicer if we didn't have to do this.

See #4100 for a simple PR that exposes this property.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions