If you have a method that needs to be tested that takes a list of SearchResults
public virtual void ProcessResults(IList<SearchResult> list)
{
//Code to tests here
}
How do you mock up that list of SearchResult?
Note: No low-level injection frameworks (eg TypeMock) allowed.
Best Solution
Currently i have this ugly code
which is used...