Isolator Feature Focus: Faking Collections

By Roy Osherove In .NET, Agile, FeatureFocus, Typemock, Unit Testing

Markdown version

Historical article · Originally published November 2, 2008; technical details may be outdated.

Another cool feature in Isolator is the ability to fake values that will be returned from custom collections (anything that inherits from IEnumerable as long as it is not in mscorlib - for example - sharepoint lists).

With the new version you can now do the following with collections:

1) Return a fake value from a specific collection item (even if the collection has not been faked yet)

image

2) Return a list of fake values when someone uses the collection

image

More in .NET

All posts in .NET