public void CanUpdateProjectFileWithStandardDesktopProjectFileXml(string xml) { using var projectFileUpdater = new ProjectFileUpdater(log, fileSystem); var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml)); canUpdate.ShouldBe(true); }
public void CannotUpdateProjectFileWithoutAPropertyGroup(string xml) { using var projectFileUpdater = new ProjectFileUpdater(log, fileSystem); var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml)); canUpdate.ShouldBe(false); }
public void CannotUpdateProjectFileWithMissingProjectSdk(string xml) { using var projectFileUpdater = new ProjectFileUpdater(this.log, this.fileSystem); var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml)); canUpdate.ShouldBe(false); }
public void CannotUpdateProjectFileWithoutAssemblyInfoGeneration(string xml) { using var projectFileUpdater = new ProjectFileUpdater(log, fileSystem); var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml)); canUpdate.ShouldBe(false); }
public void CanUpdateProjectFileWithRazorClassLibraryProjectFileXml(string xml) { using var projectFileUpdater = new ProjectFileUpdater(this.log, this.fileSystem); var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml)); canUpdate.ShouldBe(true); }