Releases: Rmkrs/Library.UnitTesting
Releases · Rmkrs/Library.UnitTesting
Release list
v2.0.0 - Explicit policy assertions
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:
ShouldGuardConstructorNullsShouldGuardMethodNullsAsyncShouldNotContainAsyncVoidMethods
- Enabled nullable reference types.
- Multi-targeted
net8.0andnet10.0. - Updated package metadata and README.
- Replaced StyleCop analyzers with Meziantou.Analyzer.
Breaking changes
UnitTestBase<T>no longer runs policy tests automatically.UnitTestBaseOptionsand olderTypeTestingExtensionsAPIs were removed.- FluentAssertions-specific
ItExtoverloads 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
- 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
🎉 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.