public void GetsInstalledPackages()
        {
            // Arrange
            var sut     = new VerboseWithPackagesDotConfigSchemeProcessor();
            var project = TestFixtureHelper.CreateProject(VisualStudioProjectScheme.VerboseWithPackagesDotConfig, TestVersion.Low, TestPackage.One, new Dictionary <string, string>());
            var doc     = XDocument.Load(project.FilePath);

            // Act
            var installedPackages = sut.GetInstalledPackages(project.FilePath, doc);

            // Assert
            Assert.Collection(installedPackages, x =>
            {
                Assert.Equal("TestPackage.One", x.Key);
                Assert.Equal(x.Value.Version, VersionRange.Parse("1.0.0"));
            });
        }
        public void UpgradePackageCreatesWarning()
        {
            // Arrange
            var sut     = new VerboseWithPackagesDotConfigSchemeProcessor();
            var tracing = new TestTracing();
            var project = TestFixtureHelper.CreateNuGetProject(VisualStudioProjectScheme.VerboseWithPackagesDotConfig, TestVersion.Low, TestPackage.One, nugetPackagesToInstall: new Dictionary <string, string>
            {
                { "TestPackage.One", "3.0.0" }
            });

            // Act
            sut.InstallPackages(
                project.Content,
                project.RequestedPackages,
                project.InstalledPackages,
                project.Name,
                tracing);

            // Assert
            Assert.Collection(tracing.WarningEntries,
                              element => Assert.Contains(
                                  "https://blog.nuget.org/20180409/migrate-packages-config-to-package-reference.html",
                                  element));
        }