public async Task PackageExists_PackageIdentityPackageSaveMode_ReturnsTrueIfPackageExists(bool useSideBySidePaths) { using (var test = new FolderNuGetProjectTest(useSideBySidePaths)) { await test.InstallAsync(PackageSaveMode.Nupkg); Assert.True(test.Project.PackageExists(test.PackageIdentity, PackageSaveMode.Nupkg)); } }
public async Task PackageExists_PackageIdentityPackageSaveMode_ReturnsTrueIfDefaultv3Installed( PackageSaveMode packageSaveMode) { using (var test = new FolderNuGetProjectTest()) { await test.InstallAsync(packageSaveMode); Assert.True(test.Project.PackageExists(test.PackageIdentity, PackageSaveMode.Defaultv3)); } }
public async Task PackageAndManifestExist_ReturnsTrueIfNuspecInstalled() { using (var test = new FolderNuGetProjectTest()) { await test.InstallAsync(PackageSaveMode.Nupkg | PackageSaveMode.Nuspec); var exists = test.Project.PackageAndManifestExists(test.PackageIdentity); Assert.True(exists); } }