Skip to content

v2.0.0 - Explicit policy assertions

Latest

Choose a tag to compare

@Rmkrs Rmkrs released this 02 Jun 20:47

Library.UnitTesting 2.0.0

This release modernizes Library.UnitTesting and moves policy checks out of the base test class into explicit assertion helpers.

Changed

  • Replaced FluentAssertions with Shouldly as the preferred assertion library.
  • Removed automatic null-guard and async-void checks from UnitTestBase<T>.
  • Added explicit policy assertion extensions:
    • ShouldGuardConstructorNulls
    • ShouldGuardMethodNullsAsync
    • ShouldNotContainAsyncVoidMethods
  • Enabled nullable reference types.
  • Multi-targeted net8.0 and net10.0.
  • Updated package metadata and README.
  • Replaced StyleCop analyzers with Meziantou.Analyzer.

Breaking changes

  • UnitTestBase<T> no longer runs policy tests automatically.
  • UnitTestBaseOptions and older TypeTestingExtensions APIs were removed.
  • FluentAssertions-specific ItExt overloads were removed.

NuGet

Published to NuGet as Library.UnitTesting version 2.0.0.