public void IsAzureFunctionsProject_ReturnsTrue_WhenProject_IsAzureFunctionsProject(string projectFile)
        {
            // Arrange
            var xdoc = XDocument.Load(new StringReader(projectFile));

            // Act
            var actual = ProjectFileHelpers.IsAzureFunctionsProject(xdoc);

            // Assert
            Assert.True(actual);
        }
        public void GetRelativePathToRoot_ReturnsPathRelativeToRoot(
            string projectFile,
            string repoRoot,
            string expectedRelativePath)
        {
            // Arrange & Act
            var actualPath = ProjectFileHelpers.GetRelativePathToRoot(projectFile, repoRoot);

            // Assert
            Assert.Equal(expectedRelativePath, actualPath);
        }
        public void IsAspNetCoreWebApplicationProject_ReturnsTrue_WhenProject_IsWebSdkProject()
        {
            // Arrange
            var xdoc = XDocument.Load(new StringReader(WebSdkProjectFile));

            // Act
            var actual = ProjectFileHelpers.IsAspNetCoreWebApplicationProject(xdoc);

            // Assert
            Assert.True(actual);
        }
        public void IsAzureBlazorWebAssemblyProject_ReturnsFalse_WhenProject_IsNot_AzureBlazorWebAssemblyProject()
        {
            // Arrange
            var projectFile = ProjectFileProviderTestBase.AzureNonBlazorWasmProjectFile;
            var xdoc        = XDocument.Load(new StringReader(projectFile));

            // Act
            var actual = ProjectFileHelpers.IsAzureBlazorWebAssemblyProject(xdoc);

            // Assert
            Assert.False(actual);
        }
        public void IsAzureBlazorWebAssemblyProject_ReturnsTrue_WhenProject_Is_NonNetStandardBlazorWebAssemblyProject()
        {
            // Arrange0
            var projectFile = ProjectFileProviderTestBase.AzureBlazorWasmClientNet5ProjectFile;
            var xdoc        = XDocument.Load(new StringReader(projectFile));

            // Act
            var actual = ProjectFileHelpers.IsBlazorWebAssemblyProject(xdoc);

            // Assert
            Assert.True(actual);
        }