Moq Examples

by Larry Spencer Tuesday, September 6, 2011 1:13 PM

I just stumbled across a treasure and I wish to share it with both of my loyal readers.

If you want to know how to do anything in Moq, you can find an example with a Google search over Moq's unit tests. For example, I wanted to know how to use the SetupSequence method. All I had to do was invoke this Google search:

 

site:http://code.google.com/p/moq/source/browse/trunk/UnitTests SetupSequence

 

In return, I got a list of the three unit-test files that use that method. Being unit tests, they showed exactly what I could and could not expect.

Tags: ,

All | General

Pingbacks and trackbacks (1)+

Add comment

About the Author

Larry Spencer

Larry Spencer develops software with the Microsoft .NET Framework for ScerIS, a document-management company in Sudbury, MA.