Load() 공개 메소드

public Load ( ) : void
리턴 void
예제 #1
0
        public void CanReadProjectFileWithoutProjectReferences()
        {
            CopyTestDataToPath("CsTestProject1.csproj", _testDataPath);

            var project = new Project(Path.Combine(_testDataPath, "CsTestProject1.csproj"));
            project.Load();

            Assert.AreEqual("CsTestProject1", project.Name);
            Assert.AreEqual("CsTestProject1", project.AssemblyName);
            Assert.IsEmpty(project.ProjectReferences);
        }
예제 #2
0
        public void CanReadProjectFileWithProjectReferences()
        {
            CopyTestDataToPath("CsTestProject2.csproj", Path.Combine(_testDataPath, "p2"));

            var project = new Project(Path.Combine(_testDataPath, "p2", "CsTestProject2.csproj"));
            project.Load();

            Assert.AreEqual("CsTestProject2", project.Name);
            Assert.AreEqual("CsTestProject2", project.AssemblyName);
            Assert.AreEqual(1, project.ProjectReferences.Count);
            Assert.AreEqual(1, project.ProjectReferences.Count);
            Assert.AreEqual(Path.Combine(_testDataPath, "p1", "CsTestProject1.csproj"), project.ProjectReferences[0]);
        }