BrightSword.Crucible
2.0.0
dotnet add package BrightSword.Crucible --version 2.0.0
NuGet\Install-Package BrightSword.Crucible -Version 2.0.0
<PackageReference Include="BrightSword.Crucible" Version="2.0.0" />
<PackageVersion Include="BrightSword.Crucible" Version="2.0.0" />
<PackageReference Include="BrightSword.Crucible" />
paket add BrightSword.Crucible --version 2.0.0
#r "nuget: BrightSword.Crucible, 2.0.0"
#:package BrightSword.Crucible@2.0.0
#addin nuget:?package=BrightSword.Crucible&version=2.0.0
#tool nuget:?package=BrightSword.Crucible&version=2.0.0
BrightSword.Crucible Documentation
Unit testing utilities for MSTest
Overview
BrightSword.Crucible provides helper methods for writing cleaner, more expressive unit tests with MSTest. It focuses on making exception testing easier and more readable.
Installation
dotnet add package BrightSword.Crucible
Features
Exception Testing
The primary feature is the ExpectException<TException> extension method, which provides a fluent, expressive way to test that code throws expected exceptions.
Usage Examples
See the test project for comprehensive examples.
API Reference
- ExpectException<TException>
Version History
1.0.16 (Current)
- Initial monorepo release
- .NET 10 support
- Enhanced documentation
Contributing
See the Contributing Guidelines.
License
This project is licensed under the Creative Commons Legal Code (CC0 1.0 Universal). See the main repository LICENSE for details.
Part of the BrightSword family of libraries
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- MSTest.TestFramework (>= 2.2.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BrightSword.Crucible:
| Package | Downloads |
|---|---|
|
BrightSword.Packages
Composite package bundling all BrightSword libraries: SwissKnife, Crucible, Feber, and Squid |
GitHub repositories
This package is not used by any popular GitHub repositories.