Beispiel #1
0
 public void CheckForProjectReferenceInfo()
 {
     Assert.IsTrue(fileData.Contains("Project("));
     Assert.IsTrue(fileData.Contains(projectFileName));
     Assert.IsTrue(fileData.Contains(CsProjectExtensions.GetProjectGuid(fullProjectFilePath)));
     Assert.IsTrue(fileData.Contains("EndProject"));
 }
Beispiel #2
0
 public void CanNotGetProjectGuidWithoutPath()
 {
     Assert.Throws <CsProjectExtensions.NoProjectFilePathSpecified>(
         () => CsProjectExtensions.GetProjectGuid(null));
     Assert.Throws <CsProjectExtensions.NoProjectFilePathSpecified>(
         () => CsProjectExtensions.GetProjectGuid(""));
 }
Beispiel #3
0
 public void CanNotGetProjectGuidWithoutExistingProjectFile()
 {
     Assert.Throws <CsProjectExtensions.ProjectFileDoesNotExistsAtSpecifiedPath>(
         () => CsProjectExtensions.GetProjectGuid(@"C:\MyProject.csproj"));
 }
Beispiel #4
0
 public void Start()
 {
     Assert.AreEqual("{20FA8D33-A964-4000-AD82-67BD6900793B}",
                     CsProjectExtensions.GetProjectGuid(CreatorTestExtensions.GetDeltaEngineProjectFilePath()));
 }
Beispiel #5
0
 public void CanNotGetProjectGuidIfFileIsNoCsProjectFile()
 {
     Assert.Throws <CsProjectExtensions.SpecifiedFileIsNoProjectFile>(
         () => CsProjectExtensions.GetProjectGuid(@"C:\MyProject.proj"));
 }