Skip to content

Instantly share code, notes, and snippets.

@erikdietrich
Created February 20, 2013 19:11
Show Gist options
  • Save erikdietrich/4998277 to your computer and use it in GitHub Desktop.
Save erikdietrich/4998277 to your computer and use it in GitHub Desktop.
public static ISetup<T, TResult> Setup<T, TResult>(this T mock, Expression<Func<T, TResult>> expression) where T : class
{
return Mock.Get(mock).Setup(expression);
}
public static void Verify<T, TResult>(this T mock, Expression<Func<T, TResult>> expression) where T : class
{
Mock.Get(mock).Verify(expression);
}
public static void Verify<T, TResult>(this T mock, Expression<Func<T, TResult>> expression, Times times) where T : class
{
Mock.Get(mock).Verify(expression, times);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment