Exemple #1
0
        public void Library()
        {
            var path = "../../files/ClassLibrary1.csproj";
            var project = new Project(path);

            Assert.AreEqual(project.Language, Language.Csharp);
            Assert.AreEqual(project.Name, "ClassLibrary1");
            Assert.AreEqual(project.Type, OutputType.Dll);
            Assert.AreEqual(project.GUID, Guid.Parse("E80982F1-EA2A-4DD1-9335-34E45B69DFD7"));
            CollectionAssert.AreEquivalent(project.ReferencedProjects, new List<Guid>());
        }
Exemple #2
0
        public void WinExe()
        {
            var path = "../../files/ProjectVisualizer.csproj";
            var project = new Project(path);

            Assert.AreEqual(project.Language, Language.Csharp);
            Assert.AreEqual(project.Name, "ProjectVisualizer");
            Assert.AreEqual(project.Type, OutputType.ExeWindow);
            Assert.AreEqual(project.GUID, Guid.Parse("D7204994-E452-46A0-90AF-4AFF76A7CE7C"));
            CollectionAssert.AreEquivalent(project.ReferencedProjects, new List<Guid>
            {
             //   Guid.Parse(""),
            });
        }
Exemple #3
0
        public void ConsoleExe()
        {
            var path = "../../files/ConsoleApplication6.csproj";
            var project = new Project(path);

            Assert.AreEqual(project.Language, Language.Csharp);
            Assert.AreEqual(project.Name, "ConsoleApplication6");
            Assert.AreEqual(project.Type, OutputType.ExeConsole);
            Assert.AreEqual(project.GUID, Guid.Parse("133FABAD-1A68-4BEF-BFE7-EA5DB76BC681"));
            CollectionAssert.AreEquivalent(project.ReferencedProjects, new List<Guid>
            {
                Guid.Parse("17d74548-fcd8-409d-8c5f-1d5c3916e10b"),
            });
        }
Exemple #4
0
        private ProjectEdge AddProjectReference(Project from, Project to)
        {
            var edgeString = string.Format("{0}-{1} Connected", from.Name, to.Name);

            ProjectEdge newEdge = new ProjectEdge(edgeString, from, to);
            Graph.AddEdge(newEdge);
            return newEdge;
        }