public void ShouldGetGenericInstanceUsingFactory(IFooFactory fooFactory) { var instance = fooFactory.GetFoo <Disposable>(42); Assert.IsType <Foo <Disposable> >(instance); }
public void ShoudGetInstanceUsingFactory(IFooFactory fooFactory) { var instance = fooFactory.GetFoo(42); Assert.IsType <Foo>(instance); }