public void CreateSharedRepository_MethodCalled_ReturnsSharedPackageRepository() { CreateCache(); ISharedPackageRepository repository = cache.CreateSharedRepository(null, null, null); Assert.IsNotNull(repository); }
public void CreatedSharedRepository_PathResolverPassed_PathResolverUsedToCreatedSharedRepository() { CreateCache(); FakePackagePathResolver resolver = new FakePackagePathResolver(); FakeSharedPackageRepository repository = cache.CreateSharedRepository(resolver, null) as FakeSharedPackageRepository; Assert.AreEqual(resolver, repository.PackagePathResolverPassedToConstructor); }