Powershell scripts for Sharepoint 2010
//our target (instance of tested class) has e. g. this.Controls.Add method...
var controls = new List<Control>();
Isolate.WhenCalled(() => target.Controls).WillReturnCollectionValuesOf(controls);
© 2012 All rights reserved.