Typemock Isolator 5.3.1 Is Out!

Come one, come all! It’s time for a new release. Download it here!

The new features are:

  • Argument matching based on supplied criteria delegate:
    Isolate.WhenCalled((int i, string s)=> fake.MethodReturnInt(i, s)).
    AndArgumentsMatch((i, s) => i > 5 && s.StartsWith("ab")).
    WillReturn(10);
  • Faking base class constructor
    Isolate.Fake.Instance<Derived>(Members.CallOriginal, ConstructorWillBe.Called, BaseConstructorWillBe.Ignored);    
  • Fake All Instances of a type
    Isolate.Swap.AllInstances<Product>().With(fake);
  • And of course, fake DateTime.Now
    Isolate.WhenCalled(() => DateTime.Now).WillReturn(new DateTime(2008, 1, 1));

There’s also a whole list of bug fixes:

  • Several issues involving resolving generic methods and types have been resolved
  • It is now possible to set more than one behavior on static calls defined on structs.
  • Fixed an issue with fakeing behavior on non public properties on generic and abstract types
  • Generic methods in test classes decorated by the [Isolated] attribute do not cause an exception anymore
  • Fixed a NullReferenceException when sequencing calls on live fakes
  • Field values are now properly copied from the swapped instance to the swapping fake when using Swap.NextInstance()
  • Fixed an issue loading the Isolator Visual Studio add-in within localized editions of Visual Studio on English operating systems
  • Fixed an issue faking XElement behavior in the VB Friendly API

Go ahead and download it. You deserve it!

TOP