public VerifyOnly() { stub = new ThingStub(); stub.DoSomething(); fake = A.Fake <IThingy>(); fake.DoSomething(); mock = new Mock <IThingy>(); mock.Object.DoSomething(); sub = Substitute.For <IThingy>(); sub.DoSomething(); rock = Rock.Create <IThingy>(); rock.Handle(r => r.DoSomething()); rock.Make().DoSomething(); }
private void RegisterRock <TService>(IRock <TService> rock) where TService : class { var maked = rock.Make(); base.Container.RegisterInstanceAs(maked, finalizerDelegate: m => rock.Verify()); }