public void TransformsAssemblyReferences()
        {
            var project        = new ProjectReader().Read(Path.Combine("TestFiles", "OtherTestProjects", "net46console.testcsproj"));
            var transformation = new AssemblyFilterPackageReferencesTransformation();

            transformation.Transform(project);

            Assert.AreEqual(12, project.AssemblyReferences.Count);
            Assert.IsTrue(project.AssemblyReferences.Any(x => x.Include == @"System.Xml.Linq"));
            Assert.IsTrue(project.AssemblyReferences.Any(x => x.Include == @"Microsoft.CSharp"));
        }
        public void RemoveExtraAssemblyReferences()
        {
            var project = new Project
            {
                AssemblyReferences = new List <AssemblyReference>
                {
                    new AssemblyReference
                    {
                        Include           = "Test.Package",
                        EmbedInteropTypes = "false",
                        HintPath          = @"..\packages\Test.Package.dll",
                        Private           = "false",
                        SpecificVersion   = "false"
                    }
                    ,
                    new AssemblyReference
                    {
                        Include           = "Other.Package",
                        EmbedInteropTypes = "false",
                        HintPath          = @"..\packages\Other.Package.dll",
                        Private           = "false",
                        SpecificVersion   = "false"
                    }
                },
                PackageReferences = new List <PackageReference>
                {
                    new PackageReference
                    {
                        Id = "Test.Package",
                        IsDevelopmentDependency = false,
                        Version = "1.2.3"
                    }
                    ,
                    new PackageReference
                    {
                        Id = "Another.Package",
                        IsDevelopmentDependency = false,
                        Version = "3.2.1"
                    }
                }
            };

            var transformation = new AssemblyFilterPackageReferencesTransformation();

            transformation.Transform(project);

            Assert.AreEqual(1, project.AssemblyReferences.Count);
            Assert.AreEqual(2, project.PackageReferences.Count);
        }