Skip to content

New (or old) Mocking Syntax?

by Cory Foy on October 5th, 2008

Is it possible to do the following, or do I have to use a Mocking framework? And if I do use a mocking framework, do I have to do anything special?

private IClassificationService fakeClassificationService = delegate {    System.Net.ICredentials Credentials    {        get { return null; }        set {}    }

    IList ListAllProjects()    {        return null;    }}

Edit: Looks like the new Rhino Mocks comes close to what I’m looking for

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS