Esempio n. 1
0
 private void AddAssemblyReferences(ProjectNode projectNode, IList <string> references)
 {
     foreach (string reference in references)
     {
         projectNode.AddAssemblyReference(reference);
     }
 }
Esempio n. 2
0
        public void ShouldAddReferencesToVsProject()
        {
            string assemblyPath = @"c:\blah\some.dll";

            ProjectNode projectNode = new ProjectNode(_vsSolution, _project.Guid);

            projectNode.AddAssemblyReference(assemblyPath);

            string pathFromMock = ((VSProject)((MockEnvDteProject)_project.ExtObject).Object).References.Item(0).Path;

            Assert.AreEqual(assemblyPath, pathFromMock);
        }
        public void ShouldAddReferencesToVSProject()
        {
            string assemblyPath = @"c:\blah\some.dll";

            ProjectNode projectNode = new ProjectNode(vsSolution, project.GUID);

            projectNode.AddAssemblyReference(assemblyPath);

            string pathFromMock = ((VSLangProj.VSProject)((MockEnvDTEProject)project.ExtObject).Object).References.Item(0).Path;

            Assert.AreEqual <string>(assemblyPath, pathFromMock);
        }
        public void ShouldAddReferenceToWebSiteProject()
        {
            string assemblyPath = @"c:\blah\some.dll";

            ProjectNode projectNode = new ProjectNode(vsSolution, project.GUID);

            CreateWebsiteProject();

            projectNode.AddAssemblyReference(assemblyPath);

            string pathFromMock = ((VsWebSite.VSWebSite)((MockEnvDTEProject)project.ExtObject).Object).References.Item(0).FullPath;

            Assert.AreEqual <string>(assemblyPath, pathFromMock);
        }
		public void ShouldAddReferenceToWebSiteProject()
		{
			string assemblyPath = @"c:\blah\some.dll";

			ProjectNode projectNode = new ProjectNode(vsSolution, project.GUID);
			CreateWebsiteProject();
			
			projectNode.AddAssemblyReference(assemblyPath);

			string pathFromMock = ((VsWebSite.VSWebSite)((MockEnvDTEProject)project.ExtObject).Object).References.Item(0).FullPath;

			Assert.AreEqual<string>(assemblyPath, pathFromMock);

		}
		public void ShouldAddReferencesToVSProject()
		{
			string assemblyPath = @"c:\blah\some.dll";

			ProjectNode projectNode = new ProjectNode(vsSolution, project.GUID);
			projectNode.AddAssemblyReference(assemblyPath);

			string pathFromMock = ((VSLangProj.VSProject)((MockEnvDTEProject)project.ExtObject).Object).References.Item(0).Path;

			Assert.AreEqual<string>(assemblyPath, pathFromMock);
		}