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")); }
public void CanNotGetProjectGuidWithoutPath() { Assert.Throws <CsProjectExtensions.NoProjectFilePathSpecified>( () => CsProjectExtensions.GetProjectGuid(null)); Assert.Throws <CsProjectExtensions.NoProjectFilePathSpecified>( () => CsProjectExtensions.GetProjectGuid("")); }
public void CanNotGetProjectGuidWithoutExistingProjectFile() { Assert.Throws <CsProjectExtensions.ProjectFileDoesNotExistsAtSpecifiedPath>( () => CsProjectExtensions.GetProjectGuid(@"C:\MyProject.csproj")); }
public void Start() { Assert.AreEqual("{20FA8D33-A964-4000-AD82-67BD6900793B}", CsProjectExtensions.GetProjectGuid(CreatorTestExtensions.GetDeltaEngineProjectFilePath())); }
public void CanNotGetProjectGuidIfFileIsNoCsProjectFile() { Assert.Throws <CsProjectExtensions.SpecifiedFileIsNoProjectFile>( () => CsProjectExtensions.GetProjectGuid(@"C:\MyProject.proj")); }