SparkyTestHelpers.Xml 1.3.0

Install-Package SparkyTestHelpers.Xml -Version 1.3.0
dotnet add package SparkyTestHelpers.Xml --version 1.3.0
<PackageReference Include="SparkyTestHelpers.Xml" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SparkyTestHelpers.Xml --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SparkyTestHelpers.Xml, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SparkyTestHelpers.Xml as a Cake Addin
#addin nuget:?package=SparkyTestHelpers.Xml&version=1.3.0

// Install SparkyTestHelpers.Xml as a Cake Tool
#tool nuget:?package=SparkyTestHelpers.Xml&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

see also:


This NuGet package contains helpers to perform .config file XML transformations, and to test the resulting transformed XML (or actually any XML, whether it's .config format or not), e.g.:

using SparkyTestHelpers.Xml;
using SparkyTestHelpers.Xml.Config;
using SparkyTestHelpers.Xml.Transformation;
// In test setup/initialize method:
    TransformResults transformResults = 
        XmlTransformer
        .ForXmlFile("../../web.config")
        .TransformedByFile("web.release.config")
        .Transform();

    if (!transformResults.Successful)
    {
        Assert.Fail(transformResults.ErrorMessage);
    }

    _xmlTester = new XmlTester(transformResults.XDocument);

. . .

// In unit test method:
    _xmlTester.AssertAppSettingsValue("testKey", "expectedValue");

See https://github.com/BrianSchroer/sparky-test-helpers/blob/master/SparkyTestHelpers.Xml/api.md for complete API documentation for this package.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 130 4/21/2021
1.2.0 135 3/18/2021
1.1.0 124 3/16/2021
1.0.1 450 12/2/2018
1.0.0 595 3/2/2018

v1.3 - Updated Microsoft.Web.Xdt dependency to v3.1