You can easily mock an extension method with JustMock. The API is the same as mocking normal method. Consider the following
public static string Echo(this Foo foo, string strValue)
{
return strValue;
}
To arrange and verify this method use the following:
string expected = "World";
var foo = new Foo();
Mock.Arrange(() => foo.Echo(Arg.IsAny<string>())).Returns(expected);
string result = foo.Echo("Hello");
Assert.AreEqual(expected, result);
Here is also a link to the documentation: Extension Methods Mocking
Disclaimer. I am one of the developers responsible for JustMock.