4 ms·
TypeMock Isolator[0] and JustMock[1] can mock nonvirtual methods and static methods. Fody Ionad[2] is a free tool that can replace static methods. The reason th
by tjalfi 9y ago
TypeMock Isolator[0] and JustMock[1] can mock nonvirtual methods and static methods. Fody Ionad[2] is a free tool that can replace static methods. The reason that most mocking framework don't support this is that the implementation is complex[3].
[0] https://www.typemock.com/isolator https://www.typemock.com/isolator
[1] http://www.telerik.com/products/mocking.aspx http://www.telerik.com/products/mocking.aspx
[2] https://github.com/Fody/Ionad https://github.com/Fody/Ionad
[3] http://mattwarren.org/2014/08/14/how-to-mock-sealed-classes-and-static-methods/ http://mattwarren.org/2014/08/14/how-to-mock-sealed-classes-...
- flukus 9y agoI can't see anything changing until the OSS frameworks have similar support. For that matter, MS should take the lead for something that could provide across the board performance improvements on their ecosystem. They don't seem to care about tooling to improve their own platforms.