Skip to content

Releases: Rmkrs/Library.UnitTesting

v2.0.0 - Explicit policy assertions

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.

v1.0.2 – Respect nullable reference types in constructor null guard tests

Choose a tag to compare

@Rmkrs Rmkrs released this 20 Jul 18:12
  • Fixed constructor null-guard checks to skip parameters marked as nullable via C# 8+ nullable annotations.
  • Prevents false positives when using [Nullable(NullableState.Nullable)] attributes.

v1.0.1 – Initial Public Release

Choose a tag to compare

@Rmkrs Rmkrs released this 20 Jul 09:49

🎉 First public release of Library.UnitTesting!

This library makes unit testing in .NET projects easier and more maintainable.
It provides helpers for:

  • Automatic random object creation using AutoFixture
  • Null guard assertion for constructors and public methods
  • Fluent Moq integration using FluentAssertions
  • A test base class with useful setup and conventions

🚀 Includes:

  • Sample app with basic dependency injection
  • Unit tests demonstrating how to use the library

📖 See the README for full setup and examples.