Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }