moq icon indicating copy to clipboard operation
moq copied to clipboard

Changes made between 4.14.7 and 4.15.1 break exception handling

Open jnanneng2 opened this issue 1 year ago • 2 comments

Describe the Bug

Changes made to Moq between 4.14.7 and 4.15.1 break application exception handling.

Steps to Reproduce

Using the attached MoqTestScenario.zip, build the project then run the test in UnitTest1. Note, the test succeeds (the project is configured to Moq v4.14.7).

Update the Moq version to 4.15.1: (Right click the project, then Manage NuGet packages. Within the installed packages, select Moq, select version 4.15.1, then 'Update', etc...)

Rebuild the solution, run the test. Note the test now fails.

Expected Behavior

The test noted should still pass; i.e. not encounter any failure.

Version Info

MoqTestScenario.zip

Back this issue Back this issue

jnanneng2 avatar Sep 24 '24 23:09 jnanneng2

Consider funding this issue if it's important to you. I'd gladly take a PR too.

The repro is hardly minimal.

Thanks!

kzu avatar Sep 27 '24 05:09 kzu

Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.

github-actions[bot] avatar May 14 '25 01:05 github-actions[bot]

This issue will now be closed since it has been labeled 'stale' without activity for 30 days.

github-actions[bot] avatar Jun 14 '25 01:06 github-actions[bot]