public void It_should_revert_the_shadow_to_the_original_project_with_package_ref()
        {
            var projectPath = "./Shadow/Lib2.csproj";
            var rootPath    = "./Resources";

            var packages = new Dictionary <string, PackageDeclaration>();

            var packageProjectPath = "./Lib1/Lib1.csproj";
            var packageId          = "PackageLib1";
            var packageProject     = new Project(packageProjectPath);

            packages.Add(packageId, new PackageDeclaration(packageProjectPath, packageId, "3.2.1", new Project[] { packageProject }));

            var project    = new Project(projectPath);
            var aggregator = ShadowProjectHelper.CreateAggregator(rootPath, project, packages);

            var revertShadowService = new ShadowProjectPushService();

            var revertedPath = revertShadowService.PushShadow(aggregator, project);

            var fullPath = Path.Combine(rootPath, revertedPath);

            var snapshotLocation = SnapshotHelper.GetLocationFromCallingCodeProjectRoot("Services");

            SnapshotHelper.AssertSnapshot(
                File.ReadAllText(fullPath),
                nameof(this.It_should_revert_the_shadow_to_the_original_project_with_package_ref),
                snapshotLocation);
        }
        private void GenerateShadowAndAssertSnapshot(string rootPath, string projectPath, Dictionary <string, PackageDeclaration> packages, string snapshotName)
        {
            var shadowFullPath = ShadowProjectHelper.GenerateShadow(rootPath, projectPath, packages);

            var snapshotLocation = SnapshotHelper.GetLocationFromCallingCodeProjectRoot("Services");

            SnapshotHelper.AssertSnapshot(
                File.ReadAllText(shadowFullPath),
                snapshotName,
                snapshotLocation);
        }