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
Occasionally my unit tests fail to run and display a very cryptic message in the output. I've narrowed the problem down to using null values inside a DataRow. The error message is completely unhelpful and the fix is unexpected. I can't believe this is by-design.
Copied from microsoft/vstest#471 on behalf of @jmagaram
Description
Occasionally my unit tests fail to run and display a very cryptic message in the output. I've narrowed the problem down to using null values inside a DataRow. The error message is completely unhelpful and the fix is unexpected. I can't believe this is by-design.
The error message is
Error in executing test. No result returned by extension. If using extension of TestMethodAttribute then please contact vendor.
The "fix" is to replace the last row with...
When I do this, Visual Studio recommends removing the unnecessary cast. I've tried labeling the datarow parameters but can't seem to make this work.
Steps to reproduce
Try running the unit test above in the RC version of Visual Studio 2017.
Expected behavior
I expect the test to run and give me correct results. Or a much more helpful error message.
The text was updated successfully, but these errors were encountered: