public void Setup()
 {
     mfs = new MockFileSystem();
     mfs.CreateDirectory(@"c:\files");
     mfs.CreateDirectory(@"c:\files\TestSolution");
     mfs.CreateDirectory(@"c:\files\TestSolution\packages");
     mfs.AddFile(@"c:\files\TestSolution\packages\repositories.config", baseRepositoriesConfig);
     mfs.AddFile(@"c:\files\TestSolution\repositories.config", baseRepositoriesConfig);
     mfs.CreateDirectory(@"c:\random\empty");
 }
        public void CanCleanPackageFolders()
        {
            var mfs = new MockFileSystem();

            mfs.CreateDirectory("c:\\packages\\Component");
            mfs.AddFile("c:\\packages\\Component\\test.txt", "blah");
            mfs.AddFile("c:\\packages\\Component\\test.dll","blah");
            mfs.AddFile("c:\\packages\\repositories.config","blah");

            var re = new Mock<IRepositoryEnumerator>();
            re.Setup(r => r.GetPackageReferenceFiles(It.IsAny<FileInfo>())).Returns(new List<PackageReferenceFile>());
            var repositoryManager = new RepositoryManager(@"c:\packages\repositories.config", re.Object, mfs);
            
            Assert.AreEqual(1, mfs.GetDirectories(repositoryManager.RepositoryConfig.Directory.FullName).Count());
            
            //_repositoryManager.CleanPackageFolders();

            Assert.AreEqual(0, mfs.GetDirectories(repositoryManager.RepositoryConfig.Directory.FullName).Count());
        }