コード例 #1
0
        public void CreateSharedRepository_MethodCalled_ReturnsSharedPackageRepository()
        {
            CreateCache();
            ISharedPackageRepository repository = cache.CreateSharedRepository(null, null, null);

            Assert.IsNotNull(repository);
        }
コード例 #2
0
        public void CreatedSharedRepository_PathResolverPassed_PathResolverUsedToCreatedSharedRepository()
        {
            CreateCache();
            FakePackagePathResolver     resolver   = new FakePackagePathResolver();
            FakeSharedPackageRepository repository = cache.CreateSharedRepository(resolver, null) as FakeSharedPackageRepository;

            Assert.AreEqual(resolver, repository.PackagePathResolverPassedToConstructor);
        }