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.
We have a scenario where we have extensive test cases which use the
ExpectedResultargument of theTestCaseattribute.Within those test we have a new need to be able to assess the
ExpectedResult.Rather than convert the tests so that the
ExpectedResultis passed in as an argument and an assert performed we would like to be able to examine theExpectedResultin the same we can see theMethodNameand theArguments.We've been able to hack together a solution using reflection against the _test field and the internal
ExpectedResultproperty of theTestMethodclass but it would be nicer if we didn't have to do this.See #4100 for a simple PR that exposes this property.