Is it possible to mock non-public members using JustMock?
public class Foo
{
private int Bar() { get; set; } // Can this be mocked?
}
2 Answers, 1 is accepted
0
Ricky
Telerik team
answered on 05 Jul 2010, 01:47 PM
Hello Nick,
Thanks a lot for asking the question. Currenlty, it is not possible to mock private / internal methods. But the good news is that we have added non-public support and it is due in the coming build.
Hope that helps,
Mehfuz
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items