Release Notes

Version 5.1

These are the release notes for Release 5.1.

 


Arrange-Act-Assert API  
  • Support faking and verifying behavior on static methods. This is done using the same AAA APIs that were released with version 5.0.
  • Support non-public (private, protected and internal) calls through the new Isolate.NonPublic API That includes both instance and static methods, properties and indexers..
  • Support setting behavior and verifying on live objects. This means that test objects that were not created as fake objects through Isolate.Fake can now have their behaviors modified using Isolate.WhenCalled(). This is also true for faking static methods
  • Support faking static constructors using the new Isolate.Fake.StaticConstructor() API.

General fixes

In 5.1.0:

  • Improved documentation: added documentation pages with examples for AAA features
  • Improved recursive fakes - generally improved the recursive fakes mechanism; specifically:
    • Recursively faking classes with methods returning MSCorLib interfaces
    • Recursive fake SQLConnection, Sharepoint object model (SPWeb)
  • Fixed Tracer crash on load
  • Several exception messages have been cleared up:
    •  Incorrect class name when faking an interface
    • Detailed error message when trying to use WhenCalled() with a method group instead of a lambda expression
    • Fixed error message when encountering a type mismatch in return values when setting up behavior
  • Added support for faking method behavior for methods returning a generic T[]
  • Fixed linker issue that caused linking on 64bit machines to be limited to 64bit linkers


Known Issues
  • Isolator now installs into Program Files->Typemock->Isolator->5.1. When removing former versions, some artifcats on the file system and menus may remain, which can be deleted manually. 


Breaking changes
  • Renamed the Isolate.Swap() method to Isolate.SwapNextInstance() for better readability.


 

Copyright © Typemock Ltd. 2004-2020. All Rights Reserved.