Browse Source

Update NuGet to version 2.1

pull/30/head
Matt Ward 13 years ago
parent
commit
1c8b4c0c75
  1. 15
      src/AddIns/Misc/PackageManagement/Project/Src/Design/FakePackage.cs
  2. 5
      src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeSettings.cs
  3. 6
      src/AddIns/Misc/PackageManagement/Project/Src/PackageFromRepository.cs
  4. 2
      src/AddIns/Misc/PackageManagement/Project/Src/PackageManagementOptions.cs
  5. 275
      src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Cmdlets.dll-Help.xml
  6. BIN
      src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Console.Types.dll
  7. BIN
      src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Core.dll
  8. 15
      src/AddIns/Misc/PackageManagement/Test/Src/PackageFromRepositoryTests.cs

15
src/AddIns/Misc/PackageManagement/Project/Src/Design/FakePackage.cs

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Versioning;
using NuGet;
namespace ICSharpCode.PackageManagement.Design
@ -163,5 +164,19 @@ namespace ICSharpCode.PackageManagement.Design @@ -163,5 +164,19 @@ namespace ICSharpCode.PackageManagement.Design
};
}
}
public List<FrameworkName> SupportedFrameworks = new List<FrameworkName>();
public FrameworkName AddSupportedFramework(string identifier)
{
var framework = new FrameworkName(identifier);
SupportedFrameworks.Add(framework);
return framework;
}
public IEnumerable<FrameworkName> GetSupportedFrameworks()
{
return SupportedFrameworks;
}
}
}

5
src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeSettings.cs

@ -182,5 +182,10 @@ namespace ICSharpCode.PackageManagement.Design @@ -182,5 +182,10 @@ namespace ICSharpCode.PackageManagement.Design
return SectionsDeleted.Contains("packageRestore");
}
}
public string GetValue(string section, string key, bool isPath)
{
throw new NotImplementedException();
}
}
}

6
src/AddIns/Misc/PackageManagement/Project/Src/PackageFromRepository.cs

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Versioning;
using NuGet;
@ -163,5 +164,10 @@ namespace ICSharpCode.PackageManagement @@ -163,5 +164,10 @@ namespace ICSharpCode.PackageManagement
public IEnumerable<PackageDependencySet> DependencySets {
get { return package.DependencySets; }
}
public IEnumerable<FrameworkName> GetSupportedFrameworks()
{
return package.GetSupportedFrameworks();
}
}
}

2
src/AddIns/Misc/PackageManagement/Project/Src/PackageManagementOptions.cs

@ -28,7 +28,7 @@ namespace ICSharpCode.PackageManagement @@ -28,7 +28,7 @@ namespace ICSharpCode.PackageManagement
}
public PackageManagementOptions(Properties properties)
: this(properties, Settings.LoadDefaultSettings())
: this(properties, Settings.LoadDefaultSettings(null))
{
}

275
src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Cmdlets.dll-Help.xml

@ -47,9 +47,9 @@ @@ -47,9 +47,9 @@
<maml:name>Source</maml:name>
<command:parameterValue required="true">string</command:parameterValue>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
</command:syntaxItem>
</command:syntax>
@ -98,12 +98,12 @@ @@ -98,12 +98,12 @@
string
</command:parameterValue>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether this command will consider prerelease packages. If omitted, only stable packages are considered.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether this command will consider prerelease packages. If omitted, only stable packages are considered.</maml:para>
</maml:description>
</command:parameter>
</command:parameters>
<!-- Examples section -->
@ -113,10 +113,10 @@ @@ -113,10 +113,10 @@
<dev:code>PM&gt; Install-Package Elmah</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Installs the latest version of the Elmah package from the current
package source into the default project.
Description
------------------------------------------------------------------
Installs the latest version of the Elmah package from the current
package source into the default project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -127,9 +127,9 @@ package source into the default project. @@ -127,9 +127,9 @@ package source into the default project.
<dev:code>PM&gt; Install-Package Glimpse -Version 1.0.0 -Project MvcApplication1 </dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Installs version 1.0.0 of Glimpse into the project named MvcApplication1
Description
------------------------------------------------------------------
Installs version 1.0.0 of Glimpse into the project named MvcApplication1
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -140,10 +140,10 @@ Installs version 1.0.0 of Glimpse into the project named MvcApplication1 @@ -140,10 +140,10 @@ Installs version 1.0.0 of Glimpse into the project named MvcApplication1
<dev:code>PM&gt; Install-Package Ninject.Mvc3 -IgnoreDependencies -Source c:\temp\packages </dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Installs the package, Ninject.Mvc3, but not its dependencies. It looks in the directory,
c:\temp\packages to find the package.
Description
------------------------------------------------------------------
Installs the package, Ninject.Mvc3, but not its dependencies. It looks in the directory,
c:\temp\packages to find the package.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -151,7 +151,7 @@ c:\temp\packages to find the package. @@ -151,7 +151,7 @@ c:\temp\packages to find the package.
</command:example>
</command:examples>
<!-- Link section -->
<!-- Link section -->
<maml:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online version:</maml:linkText>
@ -201,10 +201,7 @@ c:\temp\packages to find the package. @@ -201,10 +201,7 @@ c:\temp\packages to find the package.
<maml:name>Updates</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>ProjectName</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>Recent</maml:name>
<maml:name>ProjectName</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>Filter</maml:name>
@ -221,9 +218,9 @@ c:\temp\packages to find the package. @@ -221,9 +218,9 @@ c:\temp\packages to find the package.
<command:parameter required="false" position="named">
<maml:name>AllVersions</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
</command:syntaxItem>
</command:syntax>
@ -245,15 +242,9 @@ c:\temp\packages to find the package. @@ -245,15 +242,9 @@ c:\temp\packages to find the package.
</maml:description>
</command:parameter>
<command:parameter required="false">
<maml:name>ProjectName</maml:name>
<maml:description>
<maml:para>Specifies the project to get installed packages from. If ommitted, the command will return installed projects for the entire solution.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>Recent</maml:name>
<maml:name>ProjectName</maml:name>
<maml:description>
<maml:para>Gets the list of recently installed packages.</maml:para>
<maml:para>Specifies the project to get installed packages from. If ommitted, the command will return installed projects for the entire solution.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
@ -286,14 +277,14 @@ c:\temp\packages to find the package. @@ -286,14 +277,14 @@ c:\temp\packages to find the package.
<maml:para>Displays all available versions of a package. The latest version of each package is listed by default. </maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether to include prerelease packages in the returned results.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether to include prerelease packages in the returned results.</maml:para>
</maml:description>
</command:parameter>
</command:parameters>
<!-- Examples section -->
<command:examples>
<command:example>
@ -301,9 +292,9 @@ c:\temp\packages to find the package. @@ -301,9 +292,9 @@ c:\temp\packages to find the package.
<dev:code>PM&gt; Get-Package</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns packages installed in the current solution.
Description
------------------------------------------------------------------
Returns packages installed in the current solution.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -313,13 +304,13 @@ Returns packages installed in the current solution. @@ -313,13 +304,13 @@ Returns packages installed in the current solution.
<maml:title>---------- EXAMPLE 2 ----------</maml:title>
<dev:code>PM&gt; Get-Package -ProjectName MyProject</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns packages installed in the "MyProject" project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
<maml:para>
Description
------------------------------------------------------------------
Returns packages installed in the "MyProject" project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
<command:example>
@ -327,9 +318,9 @@ Returns packages installed in the "MyProject" project. @@ -327,9 +318,9 @@ Returns packages installed in the "MyProject" project.
<dev:code>PM&gt; Get-Package -ListAvailable</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a list of packages available online in the current package source.
Description
------------------------------------------------------------------
Returns a list of packages available online in the current package source.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -340,9 +331,9 @@ Returns a list of packages available online in the current package source. @@ -340,9 +331,9 @@ Returns a list of packages available online in the current package source.
<dev:code>PM&gt; Get-Package -ListAvailable -Filter Ninject</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a list of packages available online using "Ninject" as a search term.
Description
------------------------------------------------------------------
Returns a list of packages available online using "Ninject" as a search term.
</maml:para>
<maml:para></maml:para>
</dev:remarks>
@ -352,26 +343,14 @@ Returns a list of packages available online using "Ninject" as a search term. @@ -352,26 +343,14 @@ Returns a list of packages available online using "Ninject" as a search term.
<dev:code>PS&gt; Get-Package -Updates</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a list of packages installed in the default project that have updates available in the current package source.
Description
------------------------------------------------------------------
Returns a list of packages installed in the default project that have updates available in the current package source.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
<command:example>
<maml:title>---------- EXAMPLE 6 ----------</maml:title>
<dev:code>PM&gt; Get-Package -Recent</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a list of recently installed packages.
</maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
</command:examples>
<!-- Link section -->
@ -484,9 +463,9 @@ Returns a list of recently installed packages. @@ -484,9 +463,9 @@ Returns a list of recently installed packages.
<dev:code>PM&gt; Uninstall-Package Elmah</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Uninstalls the Elmah package from the default project.
Description
------------------------------------------------------------------
Uninstalls the Elmah package from the default project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -497,10 +476,10 @@ Uninstalls the Elmah package from the default project. @@ -497,10 +476,10 @@ Uninstalls the Elmah package from the default project.
<dev:code>PM&gt; Uninstall-Package Elmah -RemoveDependencies</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Uninstalls the Elmah package as well as all its dependencies. If any dependency has another package that depends on it,
it is skipped.
Description
------------------------------------------------------------------
Uninstalls the Elmah package as well as all its dependencies. If any dependency has another package that depends on it,
it is skipped.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -511,9 +490,9 @@ it is skipped. @@ -511,9 +490,9 @@ it is skipped.
<dev:code>PM&gt; Uninstall-Package Elmah -Force</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Uninstalls the Elmah package even if another package depends on it.
Description
------------------------------------------------------------------
Uninstalls the Elmah package even if another package depends on it.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -582,9 +561,12 @@ Uninstalls the Elmah package even if another package depends on it. @@ -582,9 +561,12 @@ Uninstalls the Elmah package even if another package depends on it.
<maml:name>Source</maml:name>
<command:parameterValue required="true">string</command:parameterValue>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>Reinstall</maml:name>
</command:parameter>
</command:syntaxItem>
</command:syntax>
@ -639,12 +621,18 @@ Uninstalls the Elmah package even if another package depends on it. @@ -639,12 +621,18 @@ Uninstalls the Elmah package even if another package depends on it.
string
</command:parameterValue>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether to include prereleases when searching for updates. If omitted, only stable packages are considered.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>IncludePrerelease</maml:name>
<maml:description>
<maml:para>Indicates whether to include prereleases when searching for updates. If omitted, only stable packages are considered.</maml:para>
</maml:description>
</command:parameter>
<command:parameter required="false" position="named">
<maml:name>Reinstall</maml:name>
<maml:description>
<maml:para>Reinstall packages with the existing versions.</maml:para>
</maml:description>
</command:parameter>
</command:parameters>
<command:examples>
@ -653,9 +641,9 @@ Uninstalls the Elmah package even if another package depends on it. @@ -653,9 +641,9 @@ Uninstalls the Elmah package even if another package depends on it.
<dev:code>PM&gt; Update-Package Elmah</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Updates the Elmah package installed in every project to the latest version.
Description
------------------------------------------------------------------
Updates the Elmah package installed in every project to the latest version.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -666,40 +654,40 @@ Updates the Elmah package installed in every project to the latest version. @@ -666,40 +654,40 @@ Updates the Elmah package installed in every project to the latest version.
<dev:code>PM&gt; Update-Package Elmah -Version 1.1.0</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Updates the Elmah package to a specific version in every project.
Description
------------------------------------------------------------------
Updates the Elmah package to a specific version in every project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
<command:example>
<command:example>
<maml:title>---------- EXAMPLE 3 ----------</maml:title>
<dev:code>PM&gt; Update-Package</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Updates every package in every project.
Description
------------------------------------------------------------------
Updates every package in every project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
<command:example>
<maml:title>---------- EXAMPLE 3 ----------</maml:title>
<dev:code>PM&gt; Update-Package -Safe -Project MvcApplication1</dev:code>
</command:example>
<command:example>
<maml:title>---------- EXAMPLE 3 ----------</maml:title>
<dev:code>PM&gt; Update-Package -Safe -Project MvcApplication1</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Updates every package in the project, MvcApplication1, to the latest "safe" version. For example,
For example, if version 1.0.0 of a package is installed, and versions 1.0.1, 1.0.2, and 1.1 are
available in the feed, the -Safe flag updates the package to 1.0.2.
Description
------------------------------------------------------------------
Updates every package in the project, MvcApplication1, to the latest "safe" version. For example,
For example, if version 1.0.0 of a package is installed, and versions 1.0.1, 1.0.2, and 1.1 are
available in the feed, the -Safe flag updates the package to 1.0.2.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
</command:examples>
@ -737,9 +725,9 @@ available in the feed, the -Safe flag updates the package to 1.0.2. @@ -737,9 +725,9 @@ available in the feed, the -Safe flag updates the package to 1.0.2.
<maml:description>
<maml:para>
Examines all assemblies within the output path for a project and adds binding redirects to the
application (or web) configuration file where necessary. NOTE: As of NuGet 1.2, NuGet automatically
runs this command when installing a package.
Examines all assemblies within the output path for a project and adds binding redirects to the
application (or web) configuration file where necessary. NOTE: As of NuGet 1.2, NuGet automatically
runs this command when installing a package.
</maml:para>
</maml:description>
@ -773,9 +761,9 @@ runs this command when installing a package. @@ -773,9 +761,9 @@ runs this command when installing a package.
<dev:code>PM&gt; Add-BindingRedirect MyProjectName</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Adds binding redirects to the specified project, MyProjectName.
Description
------------------------------------------------------------------
Adds binding redirects to the specified project, MyProjectName.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -857,9 +845,9 @@ Adds binding redirects to the specified project, MyProjectName. @@ -857,9 +845,9 @@ Adds binding redirects to the specified project, MyProjectName.
<dev:code>PM&gt; Get-Project</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a reference to the default project.
Description
------------------------------------------------------------------
Returns a reference to the default project.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -870,9 +858,9 @@ Returns a reference to the default project. @@ -870,9 +858,9 @@ Returns a reference to the default project.
<dev:code>PM&gt; Get-Project MyProjectName</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a reference to the specifed project, MyProjectName.
Description
------------------------------------------------------------------
Returns a reference to the specifed project, MyProjectName.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -883,9 +871,9 @@ Returns a reference to the specifed project, MyProjectName. @@ -883,9 +871,9 @@ Returns a reference to the specifed project, MyProjectName.
<dev:code>PM&gt; Get-Project -All</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Returns a reference to every project in the solution.
Description
------------------------------------------------------------------
Returns a reference to every project in the solution.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -928,7 +916,8 @@ Returns a reference to every project in the solution. @@ -928,7 +916,8 @@ Returns a reference to every project in the solution.
<maml:description>
<maml:para>
Open the browser pointing to ProjectUrl, LicenseUrl or ReportAbuseUrl of the specified package.</maml:para>
Open the browser pointing to ProjectUrl, LicenseUrl or ReportAbuseUrl of the specified package.
</maml:para>
</maml:description>
<!-- Cmdlet syntax section-->
@ -1004,9 +993,9 @@ Returns a reference to every project in the solution. @@ -1004,9 +993,9 @@ Returns a reference to every project in the solution.
<dev:code>PM&gt; Open-PackagePage Ninject</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Opens a browser to the project URL specified in the Ninject package.
Description
------------------------------------------------------------------
Opens a browser to the project URL specified in the Ninject package.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -1017,9 +1006,9 @@ Opens a browser to the project URL specified in the Ninject package. @@ -1017,9 +1006,9 @@ Opens a browser to the project URL specified in the Ninject package.
<dev:code>PM&gt; Open-PackagePage Ninject -License</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Opens a browser to the license URL specified in the Ninject package.
Description
------------------------------------------------------------------
Opens a browser to the license URL specified in the Ninject package.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -1030,9 +1019,9 @@ Opens a browser to the license URL specified in the Ninject package. @@ -1030,9 +1019,9 @@ Opens a browser to the license URL specified in the Ninject package.
<dev:code>PM&gt; Open-PackagePage Ninject -ReportAbuse</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Opens a browser to the URL at the current package source used to report abuse for the specified package.
Description
------------------------------------------------------------------
Opens a browser to the URL at the current package source used to report abuse for the specified package.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
@ -1043,16 +1032,16 @@ Opens a browser to the URL at the current package source used to report abuse fo @@ -1043,16 +1032,16 @@ Opens a browser to the URL at the current package source used to report abuse fo
<dev:code>PM&gt; $url = Open-PackagePage Ninject -License -WhatIf -PassThru</dev:code>
<dev:remarks>
<maml:para>
Description
------------------------------------------------------------------
Assigns the license URL to the variable, $url, without opening the URL in a browser.
Description
------------------------------------------------------------------
Assigns the license URL to the variable, $url, without opening the URL in a browser.
</maml:para>
<maml:para></maml:para>
<maml:para></maml:para>
</dev:remarks>
</command:example>
</command:examples>
<!-- Link section -->
<maml:relatedLinks>
<maml:navigationLink>

BIN
src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Console.Types.dll

Binary file not shown.

BIN
src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Core.dll

Binary file not shown.

15
src/AddIns/Misc/PackageManagement/Test/Src/PackageFromRepositoryTests.cs

@ -3,8 +3,9 @@ @@ -3,8 +3,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Linq;
using System.Runtime.Versioning;
using ICSharpCode.PackageManagement;
using ICSharpCode.PackageManagement.Design;
@ -382,5 +383,17 @@ namespace PackageManagement.Tests @@ -382,5 +383,17 @@ namespace PackageManagement.Tests
Assert.AreEqual(1, dependencies.Count);
Assert.AreEqual(expectedDependencies[0].Dependencies, dependencies[0].Dependencies);
}
[Test]
public void GetSupportedFrameworks_OneFramework_ReturnsOneFramework()
{
CreatePackage();
FrameworkName expectedFramework = fakePackage.AddSupportedFramework(".NET Framework, Version=4.0");
List<FrameworkName> supportedFrameworks = package.GetSupportedFrameworks().ToList();
Assert.AreEqual(1, supportedFrameworks.Count);
Assert.AreEqual(expectedFramework, supportedFrameworks[0]);
}
}
}

Loading…
Cancel
Save