BrightSword.Crucible 2.0.0

dotnet add package BrightSword.Crucible --version 2.0.0
                    
NuGet\Install-Package BrightSword.Crucible -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BrightSword.Crucible" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BrightSword.Crucible" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BrightSword.Crucible" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BrightSword.Crucible --version 2.0.0
                    
#r "nuget: BrightSword.Crucible, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BrightSword.Crucible@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BrightSword.Crucible&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BrightSword.Crucible&version=2.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
2.0.0 82 3/2/2026
1.0.16 2,355 6/25/2013