Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 20:26
· 42 commits to main since this release
991a946

aweXpect

⚠️ Breaking changes

  • feat!: remove the type-only overload of IgnoringMembers in the equivalency options (#2134)
  • feat!: make AreEqualTo of non-generic items generic over the collection (#2098)
  • refactor!: name the type parameters of results consistently (#2104)
  • feat!: make the signaler and event recording subjects nullable (#2100)
  • feat!: negate constraint results only through Invert and InvertIf (#2095)
  • refactor!: align the remaining Core option hooks with the option rules (#2092)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • feat!: make ReflectionFallback.NotSupported public and move ReflectionFallback to aweXpect.Core.Extending (#2058)
  • refactor!: offer the quantified collection items through the Core interfaces (#2026)
  • feat!: count the occurrences in the Containing operator of string properties (#2025)
  • feat!: add HasDayOfWeek and a generic enum property result (#2023)
  • refactor!: rename the member predicates of the equivalency options to IgnoringMembers (#2024)
  • refactor!: make the result constructors of aweXpect internal (#2022)
  • feat!: support match types for the string values of dictionaries (#2020)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: keep the exception type after HasInner and DoesNotHaveInner with a type (#2018)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: add IsActive and IsIntroduced to the expectation grammars (#2007)
  • refactor!: move the quantified collection constraints to aweXpect.Core.Extending (#2008)
  • refactor!: make the result type shapes consistent for extension authors (#1997)
  • refactor!: hand out every nested subject as IThatSubject<T> (#1988)
  • refactor!: let aweXpect.Reflection own Customize.aweXpect.Reflection() (#1986)
  • refactor!: move ObjectEqualityWithToleranceResult to aweXpect.Core (#1975)
  • refactor!: move StringCollectionMatchResult to Core and name the collection matcher tuple (#1974)
  • fix!: keep the item type in AreEqualTo on struct enumerables (#1941)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • fix!: drop the comparer options from the result of AreEquivalentTo on collection items (#1932)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add EventRecordings.StopWhen for expectations on recorded events (#2187)
  • feat: report discarded option calls of the extension packages (#2106)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: let the equality options validate an expected value (#2090)
  • feat: expose the running test, its cancellation token and attachments through the test framework adapter (#2073)
  • feat: add a driver for collection matchers to Core and explain the WithValues failures in Web (#2068)
  • feat: add ClosestMatch.AppendHint for an already known suggestion (#2063)
  • feat: add AddEqualityConstraint to aweXpect.Core.Extending (#2057)

🐞 Bug fixes

  • fix: accept a nullable string accessor in AreUnique and AreNotUnique (#2099)
  • fix: explain IsNotOneOf with the candidate that matched (#2016)
  • fix: ship the type metadata generator with aweXpect.Core (#1979)
  • fix: match AtIndex in aweXpect.Reflection only at the requested index (#1965)
  • fix: register custom exceptions despite the target site (#1873)

🧰 Other changes

  • refactor: explain the empty result texts of the collection member constraint (#2150)
  • chore: create the options holder of an expectation only when an option is set (#2078)
  • refactor: compile and load less on the first call of a string expectation (#2084)
  • chore: Bump System.Collections.Immutable from 10.0.13 to 10.0.14 (#2087)
  • refactor: use the public Core helpers instead of internal copies (#2064)
  • perf: reduce the allocations of expectations on members (#2056)
  • refactor: let the nullability of collection items flow into their expectations (#2021)
  • refactor: continue the element expectations on a non-null collection (#2019)
  • refactor: enumerate async enumerables until cancelled without an async iterator (#1911)
  • refactor: add expectations on a member without a closure (#1922)
  • refactor: compare enums and GUIDs without boxing (#1914)
  • refactor: verify a single item without a closure and delegates (#1913)
  • chore: Bump System.Collections.Immutable from 10.0.12 to 10.0.13 (#1885)
  • test: verify the public API with aweXpect.Snapshots.PublicApi (#1868)

aweXpect.Core

⚠️ Breaking changes

  • refactor!: remove StopWhen from IEventRecording (#2186)
  • feat!: replace ITimeSystem with TimeProvider (#2148)
  • refactor!: put TResult first in IEnumPropertyResult (#2135)
  • feat!: support string options in generated collection expectations (#2096)
  • refactor!: name the type parameters of results consistently (#2104)
  • feat!: negate constraint results only through Invert and InvertIf (#2095)
  • refactor!: align the remaining Core option hooks with the option rules (#2092)
  • feat!: honour ICopyOnOption in the quantifier and index options (#2089)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • feat!: add PropertyComparison.Satisfying so that extensions can add property operators (#2067)
  • feat!: make ReflectionFallback.NotSupported public and move ReflectionFallback to aweXpect.Core.Extending (#2058)
  • feat!: offer string and number property operators in Core and on IsString() and IsNumber() of aweXpect.Json (#2044)
  • refactor!: replace the nested Json DSL with expectations on the JSON value (#2034)
  • refactor!: align the parameter names of aweXpect.Reflection across its layers (#2032)
  • refactor!: offer the quantified collection items through the Core interfaces (#2026)
  • feat!: count the occurrences in the Containing operator of string properties (#2025)
  • feat!: add HasDayOfWeek and a generic enum property result (#2023)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: offer the property result operators through interfaces (#2009)
  • refactor!: generate the plural expectations of aweXpect.Reflection (#2012)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: rename Fail to FailureBothWays on ConstraintResult (#2004)
  • refactor!: add IsActive and IsIntroduced to the expectation grammars (#2007)
  • refactor!: move the quantified collection constraints to aweXpect.Core.Extending (#2008)
  • refactor!: hide the public plumbing of aweXpect.Core (#2002)
  • refactor!: use IReadOnlyList for the collection-valued customization settings (#2000)
  • refactor!: make the result type shapes consistent for extension authors (#1997)
  • refactor!: make the Core option types consistent for extension authors (#1998)
  • refactor!: hand out every nested subject as IThatSubject<T> (#1988)
  • refactor!: let aweXpect.Reflection own Customize.aweXpect.Reflection() (#1986)
  • refactor!: keep the result type after Because, WithTimeout and WithCancellation on delegate results (#1993)
  • refactor!: remove IOptionsProvider<ExpectationBuilder> from the expectation results (#1984)
  • refactor!: move ObjectEqualityWithToleranceResult to aweXpect.Core (#1975)
  • refactor!: move StringCollectionMatchResult to Core and name the collection matcher tuple (#1974)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • refactor!: tidy up core option types for extension authors (#1936)
  • refactor!: let string match types fail both ways with a reason that follows "it" (#1934)

🚀 New features

  • feat: add EventRecordings.StopWhen for expectations on recorded events (#2187)
  • feat: add OptionsProvider.WithOptions to apply options to a result with or without copy-on-option (#2147)
  • feat: report discarded option calls of the extension packages (#2106)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: let the equality options validate an expected value (#2090)
  • feat: fail null items both ways in generated collection expectations with NullItemFailsBothWays (#2093)
  • feat: expose the running test, its cancellation token and attachments through the test framework adapter (#2073)
  • feat: add a generated registration hook for extensions to aweXpect.Core (#2074)
  • feat: add a driver for collection matchers to Core and explain the WithValues failures in Web (#2068)
  • feat: add a public matcher for the excluded assembly prefixes (#2069)
  • feat: pass the evaluation context and cancellation token to member accessors (#2065)
  • feat: add ClosestMatch.AppendHint for an already known suggestion (#2063)
  • feat: add AddEqualityConstraint to aweXpect.Core.Extending (#2057)
  • feat: add CustomizationListValue for list-valued customization values (#2059)
  • feat: format values with formatters scoped to an expectation (#1978)
  • feat: let extensions find It.Is expectations and explain IsJsonSerializable failures like IsEquivalentTo (#1972)
  • feat: add WithTimeout, WithCancellation and Because to Expect.ThatAll and Expect.ThatAny (#1957)
  • feat: verify Expect.ThatAll and Expect.ThatAny synchronously (#1955)
  • feat: exclude TUnit assemblies by default (#1877)

🐞 Bug fixes

  • fix: reject null items in the list-valued settings of Core, Reflection and Web (#2184)
  • fix: register the cancellation of a delay before its timer (#2172)
  • fix: decide a cancellation when it arrives, not when a continuation notices it (#2165)
  • fix: compare the host and scheme of a URI ignoring case by default (#2160)
  • fix: keep the failure when a result context throws (#2159)
  • fix: remove ConfigureAwait(false) from the Core evaluation (#2145)
  • fix: apply the formatters of an expectation to the text of a failed negation (#2112)
  • fix: mark ITimeSystem as experimental like WithTimeSystem (#2091)
  • fix: align the argument messages of the extension packages with Core (#2088)
  • fix: keep aweXpect.Reflection string filters unchanged when a string option is applied (#2036)
  • fix: ship the type metadata generator with aweXpect.Core (#1979)
  • fix: pass JSON numbers to It.Is() as the expected numeric type (#1967)
  • fix: match AtIndex in aweXpect.Reflection only at the requested index (#1965)
  • fix: allow a nullable inner exception type in WithInner like in HasInner (#1940)
  • fix: honor comparison predicates for primitive members of registered types (#1898)
  • fix: do not deadlock at the synchronous boundaries of Reflection and Snapshots (#1889)

🧰 Other changes

  • perf: skip a formatter scope that would not change the scoped formatters (#2185)
  • perf: return an already completed result of SynchronousBoundary.Wait without a task (#2149)
  • chore: create the options holder of an expectation only when an option is set (#2078)
  • refactor: compile and load less on the first call of a string expectation (#2084)
  • chore: Bump System.Collections.Immutable from 10.0.13 to 10.0.14 (#2087)
  • perf: a fast path for single expectations in aweXpect.Core (#2072)
  • perf: reduce the allocations of expectations on members (#2056)
  • refactor: let the nullability of collection items flow into their expectations (#2021)
  • refactor: make the constructor of Expectation private protected (#1985)
  • refactor: expose the name of MemberToIgnore.ByName (#1971)
  • refactor: fix the reported Sonar issues (#1931)
  • refactor: add the subject contexts of a member with its result (#1928)
  • refactor: evaluate junctions and members without a state machine when they complete synchronously (#1925)
  • refactor: keep the builder, the expectation node and the evaluation context smaller (#1910)
  • refactor: add expectations on a member without a closure (#1922)
  • refactor: compare with the default equality without a generic virtual call (#1912)
  • refactor: allocate less for every expectation, equivalency and combined expectations (#1900)
  • refactor: format values without allocating a context and a builder when a custom formatter is registered (#1896)
  • refactor: make subject contexts, member expectations and materialized collections cheaper on the happy path (#1895)
  • refactor: keep the synchronization context of the caller (#1888)
  • test: verify the public API with aweXpect.Snapshots.PublicApi (#1868)

aweXpect.Json

⚠️ Breaking changes

  • fix!: reject an invalid expected JSON of IsJsonSerializedAs when the expectation is written (#2136)
  • fix!: make the Json and Xml option methods available with only using aweXpect; (#2130)
  • feat!: hand out nodes from the collection views of JsonNode and keep JsonValue in IsNumber (#2107)
  • feat!: align the package options of Json, Xml and PublicApi (#2113)
  • refactor!: hold the Json lookup option in an OptionsHolder (#2101)
  • feat!: parse a string expected value as JSON text in the Json matching expectations (#2102)
  • refactor!: name the type parameters of results consistently (#2104)
  • feat!: negate constraint results only through Invert and InvertIf (#2095)
  • refactor!: align the remaining Core option hooks with the option rules (#2092)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • feat!: make ReflectionFallback.NotSupported public and move ReflectionFallback to aweXpect.Core.Extending (#2058)
  • fix!: use the customized serializer options in IsJsonSerializable and keep the subject type (#2054)
  • fix!: match JsonOptions.IgnoringMember case-sensitively (#2053)
  • fix!: fail both ways on unparsable input when expectations on the XML or JSON root follow (#2050)
  • feat!: offer string and number property operators in Core and on IsString() and IsNumber() of aweXpect.Json (#2044)
  • refactor!: replace the nested Json DSL with expectations on the JSON value (#2034)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: generate the predicate expectations of aweXpect.Json and aweXpect.Web (#2005)
  • refactor!: return the non-null subject type from expectations that guarantee it (#1992)
  • refactor!: make the result type shapes consistent for extension authors (#1997)
  • refactor!: make the Core option types consistent for extension authors (#1998)
  • refactor!: hand out every nested subject as IThatSubject<T> (#1988)
  • refactor!: make the JsonOptions constructor internal (#1987)
  • refactor!: let aweXpect.Reflection own Customize.aweXpect.Reflection() (#1986)
  • refactor!: shorten the customization extension class names of the extension packages (#1989)
  • refactor!: nest expectations on IsValidJson and IsValidXml as an overload instead of Which (#1991)
  • refactor!: make the constructor of JsonWhichResult internal (#1961)
  • refactor!: move the public types of extension packages into their own namespaces (#1943)
  • feat!: add WhoseProperties to IsObject (#1951)
  • fix!: return non-null subjects from the status code and nullable JsonElement expectations (#1944)
  • refactor!: rename WithJsonOptions to WithDocumentOptions (#1946)
  • refactor!: make JsonOptions immutable like XmlOptions (#1935)
  • refactor!: name the header and JSON property parameters name (#1942)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • refactor!: take nested JSON expectations as an Action (#1937)
  • refactor!: let string match types fail both ways with a reason that follows "it" (#1934)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add OptionsProvider.WithOptions to apply options to a result with or without copy-on-option (#2147)
  • feat: report discarded option calls of the extension packages (#2106)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: add ClosestMatch.AppendHint for an already known suggestion (#2063)
  • feat: add IsNotValidJson and IsNotValidXml (#2043)
  • feat: show the subject of failed Json and Xml lookups as context (#2040)
  • feat: format values with formatters scoped to an expectation (#1978)
  • feat: let extensions find It.Is expectations and explain IsJsonSerializable failures like IsEquivalentTo (#1972)

🐞 Bug fixes

  • fix: align the argument messages of the extension packages with Core (#2088)
  • fix: use the collection "more" marker in the JSON and XML difference lists (#2061)
  • fix: align the number differences of aweXpect.Json with aweXpect for non-finite values and overflow (#2066)
  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)
  • fix: pass JSON numbers to It.Is() as the expected numeric type (#1967)

🧰 Other changes

  • docs: apply the docs style guide (#2156)
  • docs: separate the extension READMEs from their docs pages (#2154)
  • perf: parse the expected JSON once and the subject of IsValidJson only once (#2122)
  • chore: create the options holder of an expectation only when an option is set (#2078)
  • refactor: link the polyfill attributes of aweXpect.Core into the extension packages (#2060)
  • refactor: dispatch the constraints of JsonNode expectations over all constraint kinds (#2062)
  • perf: look up properties and elements of a JsonNode without converting it (#2055)
  • perf: convert a JsonNode to a JsonElement only once per evaluation (#2047)
  • refactor: share the JsonElement constraints with the nullable JsonElement expectations (#1983)
  • refactor: expose the name of MemberToIgnore.ByName (#1971)
  • refactor: add expectations on a member without a closure (#1922)
  • refactor: match an equal string, boolean or integer in IsObject and IsArray without an expected document (#1908)
  • refactor: pair JSON array elements in any order without describing the differences of candidates (#1907)
  • refactor: make JSON, HTTP and reflection expectations cheaper on the happy path (#1902)
  • refactor: speed up matching JSON against an expected object (#1891)

aweXpect.Web

⚠️ Breaking changes

  • fix!: keep encoded slashes distinguishable in HasPath (#2142)
  • fix!: treat a missing content of a request like that of a response (#2138)
  • fix!: map an IPv4-mapped address to IPv4 before the loopback check of IPAddress (#2141)
  • refactor!: hand non-nullable values to WhoseValues of headers and query parameters (#2133)
  • refactor!: seal the built-in content processors of aweXpect.Web (#2137)
  • refactor!: put TResult first in IEnumPropertyResult (#2135)
  • fix!: fail WhoseValue when a header or query parameter does not have exactly one value (#2131)
  • feat!: let the header expectations also read the content headers (#2128)
  • refactor!: name the expected values of problem details expected (#2126)
  • feat!: split HasProblemDetailsContent by whether a type is expected (#2125)
  • refactor!: name the type parameters of results consistently (#2104)
  • fix!: compare the media type of HasContentType ignoring case by default (#2070)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • feat!: add PropertyComparison.Satisfying so that extensions can add property operators (#2067)
  • feat!: add request content type and DoesNotHaveStatusCode to aweXpect.Web (#2045)
  • feat!: offer the string match types on single Web values (#2038)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: generate the predicate expectations of aweXpect.Json and aweXpect.Web (#2005)
  • refactor!: use IReadOnlyList for the collection-valued customization settings (#2000)
  • refactor!: make the plumbing constructors of StatusCodeResult and the filtered collections internal (#1990)
  • refactor!: hand out every nested subject as IThatSubject<T> (#1988)
  • refactor!: shorten the customization extension class names of the extension packages (#1989)
  • refactor!: move StringCollectionMatchResult to Core and name the collection matcher tuple (#1974)
  • fix!: return non-null subjects from the status code and nullable JsonElement expectations (#1944)
  • refactor!: name the header and JSON property parameters name (#1942)
  • refactor!: make the problem details options internal (#1953)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • refactor!: rename DifferentTo to NotEqualTo on the status code result (#1939)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add nested expectations on the request URI of an HttpRequestMessage (#2124)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: add a driver for collection matchers to Core and explain the WithValues failures in Web (#2068)
  • feat: pass the evaluation context and cancellation token to member accessors (#2065)
  • feat: add AddEqualityConstraint to aweXpect.Core.Extending (#2057)
  • feat: add CustomizationListValue for list-valued customization values (#2059)
  • feat: add direct overloads for the scheme, host, path and fragment of a Uri (#2042)

🐞 Bug fixes

  • fix: reject null items in the list-valued settings of Core, Reflection and Web (#2184)
  • fix: keep the inner grammar of the Web "which" wrappers singular and reject blank header names (#2161)
  • fix: compare the host and scheme of a URI ignoring case by default (#2160)
  • fix: drop the nested grammar in the Web member expectations ending in "which" (#2127)
  • fix: align the argument messages of the extension packages with Core (#2088)
  • fix: read a missing response content as empty instead of throwing on .NET Framework (#2048)
  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)
  • fix: read the result contexts of IPAddress equality from the evaluation options (#1973)

🧰 Other changes

  • docs: apply the docs style guide (#2156)
  • docs: separate the extension READMEs from their docs pages (#2154)
  • chore: create the options holder of an expectation only when an option is set (#2078)
  • refactor: use the public Core helpers instead of internal copies (#2064)
  • chore: remove the unused string member failure helper of aweXpect.Web (#1981)
  • refactor: check for a relative URI inside the constraints of ThatUri (#1923)
  • refactor: look up a query parameter without copying its values on the happy path (#1915)
  • refactor: add expectations on a member without a closure (#1922)
  • refactor: make JSON, HTTP and reflection expectations cheaper on the happy path (#1902)
  • refactor: format the expected status code only when the expectation fails (#1894)

aweXpect.Xml

⚠️ Breaking changes

  • fix!: make the Json and Xml option methods available with only using aweXpect; (#2130)
  • feat!: align the package options of Json, Xml and PublicApi (#2113)
  • feat!: hand out non-null Xml nodes and add attribute and value results (#2105)
  • refactor!: name the type parameters of results consistently (#2104)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • fix!: fail both ways on unparsable input when expectations on the XML or JSON root follow (#2050)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: return the non-null subject type from expectations that guarantee it (#1992)
  • refactor!: hand out every nested subject as IThatSubject<T> (#1988)
  • refactor!: nest expectations on IsValidJson and IsValidXml as an overload instead of Which (#1991)
  • refactor!: move the public types of extension packages into their own namespaces (#1943)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • refactor!: let string match types fail both ways with a reason that follows "it" (#1934)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add OptionsProvider.WithOptions to apply options to a result with or without copy-on-option (#2147)
  • feat: report discarded option calls of the extension packages (#2106)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: add ClosestMatch.AppendHint for an already known suggestion (#2063)
  • feat: add IsNotValidJson and IsNotValidXml (#2043)
  • feat: show the subject of failed Json and Xml lookups as context (#2040)
  • feat: add IgnoringAdditionalNodes to the XML options (#1962)
  • feat: add HasValue for XML elements (#1963)

🐞 Bug fixes

  • fix: indent nested elements once in the "Actual" context of a negated Xml Matches (#2189)
  • fix: align the argument messages of the extension packages with Core (#2088)
  • fix: use the collection "more" marker in the JSON and XML difference lists (#2061)
  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)

🧰 Other changes

  • chore: release aweXpect.Xml and aweXpect.Snapshots as stable packages (#2163)
  • docs: apply the docs style guide (#2156)
  • docs: separate the extension READMEs from their docs pages (#2154)
  • refactor: link the polyfill attributes of aweXpect.Core into the extension packages (#2060)
  • refactor: add expectations on a member without a closure (#1922)
  • refactor: share the empty sets of an XML comparison without members to ignore (#1909)
  • refactor: pair XML child nodes in any order without describing the differences of candidates (#1906)
  • refactor: compare XML and look up XML nodes faster on the happy path (#1892)

aweXpect.Reflection

⚠️ Breaking changes

  • refactor!: build the remaining plural expectations of aweXpect.Reflection on the generated collection constraints (#2151)
  • refactor!: build the plural type expectations of aweXpect.Reflection on the generated collection constraints (#2146)
  • refactor!: align the member-type and parameter filter names of aweXpect.Reflection (#2144)
  • fix!: fail the reflection collection expectations and their negations for a null item (#2132)
  • feat!: pass the cancellation token to the filters of aweXpect.Reflection (#2121)
  • refactor!: move AccessModifiers to the aweXpect.Reflection namespace (#2111)
  • feat!: support string options in generated collection expectations (#2096)
  • refactor!: name the type parameters of results consistently (#2104)
  • feat!: negate constraint results only through Invert and InvertIf (#2095)
  • feat!: honour ICopyOnOption in the quantifier and index options (#2089)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • feat!: make ReflectionFallback.NotSupported public and move ReflectionFallback to aweXpect.Core.Extending (#2058)
  • refactor!: align the parameter names of aweXpect.Reflection across its layers (#2032)
  • refactor!: select access modifiers of types only through the chain or a filter (#2033)
  • refactor!: move the results of aweXpect.Reflection into their own namespace (#2029)
  • feat!: accept an enumerable of expected dependencies on assemblies (#2028)
  • refactor!: unify the inheritance options of aweXpect.Reflection (#2027)
  • refactor!: offer the quantified collection items through the Core interfaces (#2026)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: offer the property result operators through interfaces (#2009)
  • refactor!: generate the plural expectations of aweXpect.Reflection (#2012)
  • refactor!: use IReadOnlyList for the collection-valued customization settings (#2000)
  • refactor!: make the changeable filter interfaces of aweXpect.Reflection internal (#1999)
  • refactor!: return the non-null subject type from expectations that guarantee it (#1992)
  • refactor!: make the result type shapes consistent for extension authors (#1997)
  • refactor!: make the plumbing constructors of StatusCodeResult and the filtered collections internal (#1990)
  • refactor!: let aweXpect.Reflection own Customize.aweXpect.Reflection() (#1986)
  • refactor!: use AtIndexFromEnd in aweXpect.Reflection instead of AtIndex(i).FromEnd() (#1977)
  • feat!: filter parameters by a custom predicate with Matching in aweXpect.Reflection (#1960)
  • refactor!: move the public types of extension packages into their own namespaces (#1943)
  • refactor!: replace the forceDirect flag of aweXpect.Reflection with explicit Directly methods (#1950)
  • refactor!: make the plumbing constructors of aweXpect.Reflection internal (#1956)
  • feat!: let string match types add the contexts of their own failure (#1938)
  • feat!: use the core string options on reflection name filters (#1933)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add the dependency and operator type filters and document OrHas and the parameter options (#2115)
  • feat: default the negated result and take the subject in AddExpectations (#2097)
  • feat: fail null items both ways in generated collection expectations with NullItemFailsBothWays (#2093)
  • feat: add a public matcher for the excluded assembly prefixes (#2069)
  • feat: add CustomizationListValue for list-valued customization values (#2059)
  • feat: negate the setter checks, select operators on method collections and check access modifiers as a value (#2035)
  • feat: verify that types depend on a runtime type (#2031)
  • feat: add the missing negations to aweXpect.Reflection (#1948)
  • feat: add DependOn() and DoNotDependOn() for collections of types (#1945)

🐞 Bug fixes

  • fix: reject null items in the list-valued settings of Core, Reflection and Web (#2184)
  • fix: separate the filter descriptions of the In.Type and In.Types sources (#2119)
  • fix: align the argument messages of the extension packages with Core (#2088)
  • fix: read the reflection sources when they are enumerated, not when they are created (#2052)
  • fix: keep aweXpect.Reflection string filters unchanged when a string option is applied (#2036)
  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)
  • fix: limit the item lists in aweXpect.Reflection failures (#1980)
  • fix: keep aweXpect.Reflection filters unchanged when an option is applied (#1969)
  • fix: honour inherit in the attribute expectations of properties and events (#1968)
  • fix: match AtIndex in aweXpect.Reflection only at the requested index (#1965)
  • fix: show the parameter modifiers in the formatted methods and constructors of aweXpect.Reflection (#1964)
  • fix: take params arrays in aweXpect.Reflection so consumers below C#13 can pass single values (#1959)
  • fix: do not deadlock at the synchronous boundaries of Reflection and Snapshots (#1889)

🧰 Other changes

  • docs: apply the docs style guide (#2156)
  • docs: separate the extension READMEs from their docs pages (#2154)
  • chore: create the options holder of an expectation only when an option is set (#2078)
  • refactor: make the options of aweXpect.Reflection immutable values (#2071)
  • refactor: link the polyfill attributes of aweXpect.Core into the extension packages (#2060)
  • refactor: generate the singular predicate expectations of aweXpect.Reflection (#2006)
  • refactor: fix the reported Sonar issues (#1931)
  • refactor: check attribute expectations without a predicate with IsDefined (#1920)
  • refactor: cache whether a method is async (#1917)
  • refactor: cache the members of a type per scope and customization (#1916)
  • refactor: list the types of unfiltered assemblies in a single iterator (#1921)
  • refactor: cache the nullability annotation of a member (#1918)
  • refactor: read the included compiler-generated and special-name members without a customization value (#1919)
  • refactor: make JSON, HTTP and reflection expectations cheaper on the happy path (#1902)
  • refactor: speed up architecture rules on the types of an assembly (#1893)

aweXpect.Snapshots

⚠️ Breaking changes

  • feat!: list the snapshot and public API options in the failure (#2123)
  • feat!: split the snapshot result by the kind of subject (#2116)
  • feat!: rename ComparedWith to Using in the snapshot results (#2103)
  • refactor!: name the type parameters of results consistently (#2104)
  • refactor!: make every option an immutable value in one OptionsHolder (#2046)
  • fix!: fail snapshot ids that differ only in case and compare paths by one rule (#2051)
  • refactor!: merge the options overloads of MatchesPublicApiSnapshot (#2037)
  • refactor!: redesign the match types around a matcher per evaluation (#2015)
  • refactor!: use IReadOnlyList for the collection-valued customization settings (#2000)
  • refactor!: return the non-null subject type from expectations that guarantee it (#1992)
  • refactor!: shorten the customization extension class names of the extension packages (#1989)
  • refactor!: move the public types of extension packages into their own namespaces (#1943)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: keep named snapshots in a directory per test file and method (#2181)
  • feat: expose the running test, its cancellation token and attachments through the test framework adapter (#2073)
  • feat: add a generated registration hook for extensions to aweXpect.Core (#2074)
  • feat: add CustomizationListValue for list-valued customization values (#2059)
  • feat: nest the snapshot files under their test files in the IDE (#2010)

🐞 Bug fixes

  • fix: never compile snapshot files of a test project (#2118)
  • fix: let the text selection of snapshot rules return a copy for each option (#2108)
  • fix: let WithExtension accept the nullable public API snapshot result (#2110)
  • fix: keep snapshot rule selections unchanged when a string option is applied (#2049)
  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)
  • fix: let ? in a snapshot wildcard mask match a surrogate pair as one character (#1982)
  • fix: ship the type metadata generator with aweXpect.Core (#1979)
  • fix: do not deadlock at the synchronous boundaries of Reflection and Snapshots (#1889)

🧰 Other changes

  • chore: release aweXpect.Xml and aweXpect.Snapshots as stable packages (#2163)
  • docs: apply the docs style guide (#2156)
  • docs: separate the extension READMEs from their docs pages (#2154)
  • refactor: link the polyfill attributes of aweXpect.Core into the extension packages (#2060)

aweXpect.Snapshots.DiffEngine

⚠️ Breaking changes

  • refactor!: move DiffEngineReporter into the namespace aweXpect.Snapshots.DiffEngine (#2140)
  • refactor!: shorten the customization extension class names of the extension packages (#1989)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: add a generated registration hook for extensions to aweXpect.Core (#2074)

🐞 Bug fixes

  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)

🧰 Other changes

  • chore: release aweXpect.Xml and aweXpect.Snapshots as stable packages (#2163)
  • docs: separate the extension READMEs from their docs pages (#2154)

aweXpect.Snapshots.PublicApi

⚠️ Breaking changes

  • feat!: list the snapshot and public API options in the failure (#2123)
  • feat!: align the package options of Json, Xml and PublicApi (#2113)
  • feat!: split the snapshot result by the kind of subject (#2116)
  • refactor!: accept optional options in PublicApiDeclarations.GenerateFrom (#2114)
  • refactor!: merge the options overloads of MatchesPublicApiSnapshot (#2037)
  • refactor!: make the ExpectationBuilder surface for extension authors consistent (#1996)
  • refactor!: return the non-null subject type from expectations that guarantee it (#1992)
  • refactor!: move the public types of extension packages into their own namespaces (#1943)
  • feat!: release all aweXpect packages from one repository with one version

🚀 New features

  • feat: store public API snapshots as C# files (#2182)
  • feat: report discarded option calls of the extension packages (#2106)

🐞 Bug fixes

  • fix: pass the analyzers of aweXpect.Core on from the extension packages (#2001)

🧰 Other changes

  • chore: release aweXpect.Xml and aweXpect.Snapshots as stable packages (#2163)
  • docs: separate the extension READMEs from their docs pages (#2154)

What's Changed

📖 Documentation

  • docs: add an agent guide by @vbreuss in #1872
  • docs: update the README and the extension packages overview by @vbreuss in #1897
  • docs: show the benchmark results of the extension packages by @vbreuss in #1905
  • docs: add a migration guide from aweXpect 3 to 4 by @vbreuss in #2030
  • docs: link the extension docs instead of the archived repositories by @vbreuss in #2083
  • docs: focus the documentation on users and extension authors by @vbreuss in #2094
  • docs: separate the extension READMEs from their docs pages by @vbreuss in #2154
  • docs: lead the v3 migration with Native AOT and complete the v4 changelog by @vbreuss in #2162
  • docs: draw the aweXpect check as a brush stroke by @vbreuss in #2190
  • docs: link aweXpect.Chronology at its new location by @vbreuss in #2191

🧰 Maintenance

Full Changelog: v3.4.0...v4.0.0