public void AddFrameworkReference_SystemXmlToBeAdded_AddedReferenceIsLogged()
        {
            CreateTestProject();
            CreateProjectSystem(project);
            project.Name = "MyTestProject";

            projectSystem.AddFrameworkReference("System.Xml");

            var expectedReferenceAndProjectName = new ReferenceAndProjectName()
            {
                Reference = "System.Xml",
                Project   = "MyTestProject"
            };

            Assert.AreEqual(expectedReferenceAndProjectName, projectSystem.ReferenceAndProjectNamePassedToLogAddedReferenceToProject);
        }
        public void RemoveReference_ReferenceBeingRemovedHasFileExtension_ReferenceRemovalIsLogged()
        {
            CreateTestProject();
            project.Name = "MyTestProject";
            ProjectHelper.AddReference(project, "nunit.framework");
            CreateProjectSystem(project);

            string fileName = @"d:\projects\packages\nunit\nunit.framework.dll";

            projectSystem.RemoveReference(fileName);

            var expectedReferenceAndProjectName = new ReferenceAndProjectName {
                Reference = "nunit.framework",
                Project   = "MyTestProject"
            };

            Assert.AreEqual(expectedReferenceAndProjectName, projectSystem.ReferenceAndProjectNamePassedToLogRemovedReferenceFromProject);
        }
        public void AddReference_AddReferenceToNUnitFramework_AddingReferenceIsLogged()
        {
            CreateTestProject();
            CreateProjectSystem(project);
            project.Name = "MyTestProject";

            string fileName = @"d:\projects\packages\nunit\nunit.framework.dll";

            projectSystem.AddReference(fileName, null);

            var expectedReferenceAndProjectName = new ReferenceAndProjectName()
            {
                Reference = "nunit.framework",
                Project   = "MyTestProject"
            };

            Assert.AreEqual(expectedReferenceAndProjectName, projectSystem.ReferenceAndProjectNamePassedToLogAddedReferenceToProject);
        }