public void ReadFromDirectory() {
     using (var manager = new TemporaryFileManager()) {
         var dir = manager.GetNewTempDirectory();
         FilesystemPackageJsonTestHelpers.CreatePackageJson(Path.Combine(dir.FullName, "package.json"), PkgSimple);
         CheckPackage(PackageJsonFactory.Create(new DirectoryPackageJsonSource(dir.FullName)));
     }
 }
 public void ReadFromDirectory()
 {
     using (var manager = new TemporaryFileManager()) {
         var dir = manager.GetNewTempDirectory();
         FilesystemPackageJsonTestHelpers.CreatePackageJson(Path.Combine(dir.FullName, "package.json"), PkgSimple);
         CheckPackage(PackageJsonFactory.Create(new DirectoryPackageJsonSource(dir.FullName)));
     }
 }
Exemplo n.º 3
0
 public static string CreateRootPackageDir(TemporaryFileManager manager)
 {
     return(manager.GetNewTempDirectory().FullName);
 }
 public static string CreateRootPackageDir(TemporaryFileManager manager) {
     return manager.GetNewTempDirectory().FullName;
 }