I'm using Moq to do unit testing. In the method I'm trying to unit test I'm trying to ensure that it doesn't throw an exception but I'd also like to get the return value of the method I'm unit testing to verify the result.
_myService.Invoking(x => x.TestMethod(request)).Should().NotThrow();
The above works. The test passes. However, I'd like to get the return value of TestMethod.