Check out the latest service pack release for Telerik JustMock that includes fixes for Visual Studio code coverage, dotCover, different behavior of different Arrange overloads and not respected arrangements.
Integration with Visual Studio Code Coverage
With the previous release of JustMock we had introduced a bug in the integration between JustMock and Visual Studio code coverage functionality. I am happy to share that the problem is already fixed.
Integration with dotCover
We have discovered that there is an unpleasant issue with the approach we had on initializing the JustMock profiler that had an impact over the integration between JustMock and dotCover. The issue is fixed and there are no other known issues with other third party profilers.
Different Behavior for Different Arrange Overloads
We have received some inquiries about a different and unexpected behavior when a mock of a LINQ query was made with the Arrange overload that accepts a function as a parameter. The issue was that the query was recognized as a different action. The reason for this is that this overload was not designed to handle a LINQ queries. This is why we have implemented a mechanism that will recognize such scenarios and will throw an exception. The exception will contain a message with suggestion about the correct Arrange overload that has an expression as a parameter and which should be used in such scenarios.
A Static Constructor Disrespects Arrangements when Triggered by the PrivateAccessor Class
As the heading suggests, there was a problem where a static constructor triggers a type initialization which disrespected the previously made arrangement. All of this was happening only when the static constructor was triggered by a call made from the Telerik.JustMock.PrivateAccessor class. You can enjoy the fix with the JustMock R2 2019 Service Pack.
JustMock Templates for .NET Framework
For better test discovery by Visual Studio 2017/2019 we have updated the version of the NuGet packages that the JustMock C# .NET Framework template is using. Those packages are MSTest.TestAdapter and MSTest.TestFramework.
Try It Out and Share Your Feedback
The R2 2019 Service Pack is already available for download in customers’ accounts. If you are new to Telerik JustMock, you can learn more about it via the product page. It comes with a 30-day free trial, giving you some time to explore the capabilities of JustMock.
We would love to hear what you think, so should you have any questions and/or comments, please share them in our Feedback Portal.
You can also check our Release History page for a complete list of the included improvements.