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 static string CreateRootPackageDir(TemporaryFileManager manager) { return(manager.GetNewTempDirectory().FullName); }
public static string CreateRootPackageDir(TemporaryFileManager manager) { return manager.GetNewTempDirectory().FullName; }