public void get_uses_the_family_to_return()
        {
            var widget = new AWidget();

            familyMock.Build(instance).Returns(widget);

            instanceRef.Get <IWidget>().ShouldBeTheSameAs(widget);
        }
Example #2
0
 private void readInstance(InstanceRef instance)
 {
     try
     {
         var fixture = instance.Get <IFixture>();
         ReadFixture(instance.Name, fixture);
     }
     catch (Exception e)
     {
         LogFixtureFailure(instance.Name, e);
     }
 }
Example #3
0
 private void readInstance(InstanceRef instance)
 {
     try
     {
         var fixture = instance.Get<IFixture>();
         ReadFixture(instance.Name, fixture);
     }
     catch (Exception e)
     {
         LogFixtureFailure(instance.Name, e);
     }
 }