示例#1
0
        public void CanUpdateProjectFileWithStandardDesktopProjectFileXml(string xml)
        {
            using var projectFileUpdater = new ProjectFileUpdater(log, fileSystem);

            var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml));

            canUpdate.ShouldBe(true);
        }
示例#2
0
        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);
    }
示例#4
0
        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);
    }