public ReturnOnly() { stub = new ThingStub(); fake = A.Fake <IThingy>(); A.CallTo(() => fake.One()).Returns(1); var mockSetup = new Mock <IThingy>(); mockSetup.Setup(m => m.One()).Returns(1); mock = mockSetup.Object; sub = Substitute.For <IThingy>(); sub.One().Returns(1); var rock = Rock.Create <IThingy>(); rock.Handle(r => r.One()).Returns(1); chunk = rock.Make(); }
public int Rocks() => chunk.One();
public int NSubstitute() => sub.One();
public int Moq() => mock.One();
//[Benchmark] public int FakeItEasy() => fake.One();
public int Stub() => stub.One();