Typemock Isolator 5.1.1 is Out!

Ever wanted to fake collections or perform dynamic-language style behavior faking? Get the new Isolator version 5.1.1! This version received a minor version notation because we still have some major features up our sleeve, but it still sports cool new features, namely:

Duck-type swapping:

The saying “If it walks like a duck and talks like a duck, it must be a duck” is often used to illustrate concepts behind dynamic languages. Identifying an object by its behavior, rather than by its declared type, adds a programming language with powerful and flexible descriptive capabilities – just see what Microsoft is up to in C# futures. We took the idea of behavior-based type inference into the behavior faking world with the new Isolator swapping features:

Besides the novelty value and endless options dealing with duck and dogs (you can make ducks chase cars or go fetch!), this is useful in unit testing. When you want to replace an object you are dependant on with a stand-in implementation this is a simple and powerful mechanism.

Collection handling:

A lot of support cases we saw recently pointed out difficulties when handling collections with Isolator. This is a frequent yet complex problem we are addressing with this release. Basically it comes with two sub features: collection value swapping and automatic collection faking.

Collection value swapping: we can now replace values of collections in the code under test with test data collections we prepare for this purpose. The API is pretty simple too:

Automatic collection faking: when modifying behavior for a call chain which includes a collection index access, we assume you would like to fake out all elements in that collection up to the one in the index we are modifying. With auto-collection faking this is done automatically: when setting behavior for a collection element, all elements of a lower index are automatically created and assigned with recursive fake objects. Here’s a practical example from the SharePoint world:

What do you think? go ahead and download the new version and let us know.

Tags: