public IEnumerable <PackageDependency> GetPackages(TargetFrameworkId targetFrameworkId) { // There isn't an official nuget for Unity, sadly, so add this feed to test/data/nuget.config // <add key="unity-testlibs" value="https://myget.org/F/resharper-unity/api/v2/" /> return(from name in GetPackageNames() select TestPackagesAttribute.ParsePackageDependency(name)); }
public IEnumerable <string> GetReferences(TargetFrameworkId targetFrameworkId, FileSystemPath testDataPath, NugetPackagesCache nugetPackagesCache) { var names = GetPackageNames().ToArray(); var attribute = new TestPackagesAttribute(names); return(attribute.GetReferences(targetFrameworkId, testDataPath, nugetPackagesCache)); }
public override IEnumerable <PackageDependency> GetPackages(PlatformID platformID) { // There isn't an official nuget for Unity, sadly, so add this feed to test/data/nuget.config // <add key="unity-testlibs" value="https://myget.org/F/resharper-unity/api/v2/" /> switch (myVersion) { case UnityVersion.Unity54: yield return(TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.4.0")); break; case UnityVersion.Unity55: yield return(TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.5.0")); break; } foreach (var package in base.GetPackages(platformID)) { yield return(package); } }