#24 Faking Static Methods

open
nobody
None
5
2009-06-05
2009-06-05
Anonymous
No

Currently, I don't see it's possible to fake static methods which is needed maybe in every project.

I think the quickest way to implement this is to have a look at the TypeMock assembly code using .NET Reflector, then finding
out how they are implementing how to fake static methods and finally writing your own customized NMock version.

I attached the assembly as well (it's free to download and try from their site I believe).

Pooya

Discussion