Isolator Feature Focus: Faking Collections - ISerializable - Roy Osherove's Blog

Isolator Feature Focus: Faking Collections

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

Published Sunday, November 02, 2008 7:57 AM by RoyOsherove

Comments

Sunday, November 02, 2008 2:01 PM by Andrew Woodward

# re: Isolator Feature Focus: Faking Collections

The new features that have come to Isolator with the new AAA syntax, Members.ReturnRecursiveFakes and this WillReturnCollectionValuesOf are just brilliant.

Unit testing SharePoint will become so much easier.

Thank You TypeMock team :)

Sunday, November 02, 2008 7:04 PM by Links (11/2/2008) « Steve Pietrek - Everything SharePoint

# Links (11/2/2008) « Steve Pietrek - Everything SharePoint

Pingback from  Links (11/2/2008) « Steve Pietrek - Everything SharePoint

# Reflective Perspective - Chris Alcock » The Morning Brew #214

Pingback from  Reflective Perspective - Chris Alcock  » The Morning Brew #214