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.
We hear your feedback that there is room for improving the flawless integration with Visual Studio code coverage functionality. I am happy to share that the improvements are implemented.
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.
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.
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.
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.
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.
Mihail Vladov is a Software Engineering Manager at Progress. He has more than a decade of experience with software and product development and is passionate about good software design and quality code. Mihail helped develop the WPF controls suite and Document Processing libraries which are used by thousands of developers. Currently, he is leading the JustMock team. In his free time, he loves to travel and taste different foods. You can find Mihail on LinkedIn.
Subscribe to be the first to get our expert-written articles and tutorials for developers!