public void get_uses_the_family_to_return() { var widget = new AWidget(); familyMock.Build(instance).Returns(widget); instanceRef.Get <IWidget>().ShouldBeTheSameAs(widget); }
private void readInstance(InstanceRef instance) { try { var fixture = instance.Get <IFixture>(); ReadFixture(instance.Name, fixture); } catch (Exception e) { LogFixtureFailure(instance.Name, e); } }
private void readInstance(InstanceRef instance) { try { var fixture = instance.Get<IFixture>(); ReadFixture(instance.Name, fixture); } catch (Exception e) { LogFixtureFailure(instance.Name, e); } }