CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of NMock
C#
/************************************************************/
/* Set expectations for a method to be called only once     */
/************************************************************/
// NMock:
Expect.Once.On(mockLookupList).Method("Clear");
 
// Rhino Mocks
mockLookupList.Expect(x => x.Clear()).Repeat.Once();
 
/************************************************************/
by Cat   June 22, 2010 @ 12:53pm
188 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate