public void CreateCallsWrappedIFixtureWithExtension() { var mockIFixture = Substitute.For <IFixture>(); var uut = new AutoFixtureTest(mockIFixture); uut.Create <ICloneable>(); mockIFixture.Received().Create(Arg.Any <object>(), Arg.Any <ISpecimenContext>()); }
public void CreateCallsWrappedIFixture() { var mockIFixture = Substitute.For <IFixture>(); var mockICloneable = Substitute.For <ICloneable>(); var mockISpecimenContext = Substitute.For <ISpecimenContext>(); var uut = new AutoFixtureTest(mockIFixture); _ = uut.Create(mockICloneable, mockISpecimenContext); mockIFixture.Received().Create(mockICloneable, mockISpecimenContext); }