Skip to content

Releases: xmlunit/xmlunit.net

XMLUnit.NET 2.11.2

Choose a tag to compare

@bodewig bodewig released this 31 Jul 17:08
v2.11.2
3c1734d

This release adds an option to specify the culture used to parse patterns in the isDateTime placeholder.

Full list of changes:

  • IsDateTimePlaceholderHandler now supports an optional second argument specifying a
    different CultureInfo than the invariant culture used by default as
    CultureInfo name like de or fr-FR.

    Also modified the logic when no argument is present to still try
    parsing using the current culture and then trying a set of ISO
    patterns using the invariant culture in turn - making isDateTime
    match what the Java version does mor closely.

    PR #54 based on
    PR xmlunit/#335 by @jmestwa-coder

XMLUnit.NET 2.11.1

Choose a tag to compare

@bodewig bodewig released this 19 May 02:58
v2.11.1
  • placeholders can now also be used inside of the local part of xsi:type attributes.
    PR #49

  • PlaceholderDifferenceEvaluator would cause InvalidCastException for documents with
    differences in xsi:type attributes.
    Equivalent of XMLUnit Java Issue #xmlunit/276

  • added readme files for the nuget packages.
    Issue #46.

  • the NUnit 4.x constraints package tags nunit3 rather than nunit4.
    PR #43.

  • added Cyclone DX SBOMs to release artifacts
    Issue #47.

XMLUnit.NET 2.11.0

Choose a tag to compare

@bodewig bodewig released this 28 Mar 19:58
v2.11.0
  • introduced a new constraints library for NUnit 4.x as the NUnit 3.x
    constraints can not be used with NUnit 4.x at all.
    Issue #42.

XMLUnit.NET 2.10.0

Choose a tag to compare

@bodewig bodewig released this 08 Aug 19:17
  • adjusted the NUnit 3.x constraints so they should work for NUnit 4.x as well.
    Issue #40.

  • add a new ElementSelectors.ByNameAndAllAttributes variant that filters attributes before deciding whether elements can be compared.
    Inspired by Issue #xmlunit/259

  • Nodes.GetMergedNestedText and Nodes.StripElementContentWhitespace had the same problem of not knowning about XmlWhitespace that caused Issue #38. And neither of the methods could deal with XmlSignificantWhitespace at all.

  • add XmlWhitespaceStrippedSource, XmlWhitespaceNormalizedSource, and XmlElementContentWhitespaceStrippedSource that only trim characters that are considered whitespace by the XML Specification from textual content.
    Also added new modifiers to DiffBuilder that make use of the new ISource types.
    Issue #39.

XMLUnit.NET 2.9.2

Choose a tag to compare

@bodewig bodewig released this 16 Mar 13:41

This is a small feature and bugfix release.

The full changelog is

  • added NodeFilters#SatisfiesAll and SatifiesAny methods to make it easier to combine multiple node filters.
    added to simplify the use case of xmlunit/#249

  • when documents contained element content whitespace represented by System.Xml.XmlWhitespace the types and methods that are supposed to strip or normalize whitespace would fail.
    Issue #38

XMLUnit.NET 2.9.1

Choose a tag to compare

@bodewig bodewig released this 16 Dec 20:21

XMLUnit.NET ports changes made to XMLUnit for Java 2.8.3 and 2.8.4. The full changelog is:

  • improved comparison performance for documents with many siblings
    based on a suggestion by @gerpres made in Java Issue xmlunit/#236

  • added a new FullDescription method to Diff that provides a string-representation of all differences - not just the first one like ToString does.
    Based on Java PR xmlunit/#235 by @Boiarshinov

XMLUnit.NET 2.9.0

Choose a tag to compare

@bodewig bodewig released this 30 Oct 16:26

This release fixes a bug for a very specific setup and makes ISource disposable.

Full details:

  • ISource now extends IDisposable to allow releasing unmanaged resources used when building sources from files or URIs.

    This change is backwards incompatible if you are providing ISource implementations of your own.
    #33.

  • DefaultNodeMatcher with multiple ElementSelectors could fail to find the best matches as the order of ElementSelectors should select them.
    Issue similar to xmlunit/#197

XMLUnit.NET 2.8.0

Choose a tag to compare

@bodewig bodewig released this 12 May 16:14

This version contains a backwards incompatible change to the IPlaceholderHandler interface that is part of the experimental placeholders module: The Evaluate method now receives a variable number of string arguments in addition to the textual content of the element/attribute. This allows placeholders like ${xmlunit.matchesRegex(some\s*regex)}.

Only the placeholder package has been changed, all other packages are functionally identical to XMLUnit.NET 2.7.2.

XMLUnit.NET 2.7.2

Choose a tag to compare

@bodewig bodewig released this 08 Mar 13:09

This release fixes a bug in the construction of XPaths in certain corner cases:

  • the XPath values for comparisons resulting in CHILD_LOOKUP
    differences could be wrong when NodeFilters were present.
    Issue #29

XMLUnit.NET 2.7.1

Choose a tag to compare

@bodewig bodewig released this 21 Jun 18:57

The release fixes a bug in a corner-case and adds a new isNumber placeholder.

The full list of changes:

  • add a new ${xmlunit.isNumber} placeholder
    Based on the Java PR xmlunit/#154 by @NathanAtClarity.

  • the XPath values of a comparison should not be affected by any NodeFilter being in effect.
    Issue similar to xmlunit/#156