Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0.0 #62

Merged
merged 2 commits into from
Dec 2, 2023
Merged

v4.0.0 #62

merged 2 commits into from
Dec 2, 2023

Conversation

chullybun
Copy link
Collaborator

All internal dependecies to CoreEx have been removed. This is intended to further generalize the capabilities of UnitTestEx; but more importantly, break the circular dependency reference between the two repositories. New CoreEx.UnitTesting* packages have been created to extend the UnitTestEx capabilities for CoreEx.

  • Enhancement: All typed value assertions have been named AssertValue for consistency; otherwise, AssertContent for a simple string comparison.
  • Enhancement: All JSON-related assertions have been named AssertJson* for consistency.
  • Enhancement: The CreateServiceBusMessage methods that accept a generic T value have been renamed to CreateServiceBusMessageFromValue.
  • Enhancement: The Expectations capabilities have been greatly improved to support new expectations to be added/extended.
  • Enhancement: A new GenericTester that explicitly supports a TValue has been added; use new GenericTester.CreateFor<TValue> to instantiate/use.
  • Enhancement: Removed KellermanSoftware.CompareNetObjects dependency; all comparisons use internal JsonElementComparer which has proper/improved support for fully qualified paths, including optional array indexers. The related JsonElementComparerOptions provides a means to control the comparison behaviour.
  • Enhancement: The ObjectComparer has been reinstated and now leverages the JsonElementComparer internally.
  • Enhancement: Updated to only support .NET6.0 and above; added .NET8.0 support.

The enhancements have been made in a manner to maximize backwards compatibility with previous versions of UnitTestEx where possible; however, some breaking changes were unfortunately unavoidable (and made to improve overall). There may be an opportunity for the consuming developer to add extension methods to support the previous naming conventions if desired; note that the next CoreEx version (v3.6.0) will implement extensions in new CoreEx.UnitTesting packages to support existing behaviors (where applicable).

@chullybun chullybun merged commit 8161e96 into main Dec 2, 2023
2 checks passed
@chullybun chullybun deleted the v4.0.0 branch December 2, 2023 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant