Similar to this question about NSubstitute , I want to know if partial mocks can be implemented using FakeItEasy .
FakeItEasy seems to have better syntax than moq (for example, the strongly typed way the former deals with passing parameters to the constructor of a fake class). I'm thinking of switching to FakeItEasy, but I really need partial mock support.
Yes . The syntax is no different from a normal fake:
var fake = A.Fake<Fake>(); A.CallTo(() => fake.SomeMethod()).CallBaseMethod();
Or, to override all calls with basic calls:
var fake = A.Fake<Fake>(); A.CallTo(fake).CallBaseMethod();
, : .