MSTestExtensions 4.0.0

.NET Framework
Install-Package MSTestExtensions -Version 4.0.0
dotnet add package MSTestExtensions --version 4.0.0
<PackageReference Include="MSTestExtensions" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSTestExtensions --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MSTestExtensions, 4.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSTestExtensions as a Cake Addin
#addin nuget:?package=MSTestExtensions&version=4.0.0

// Install MSTestExtensions as a Cake Tool
#tool nuget:?package=MSTestExtensions&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

An extendible implementation of the Assert class in MSTest.

Allows for extending the Assert methods with the default MSTest methods as a default.

Includes a:
* Throws() method for asserting exceptions.
* ThrowsAsync() method for asserting exceptions for async methods.

INSTRUCTIONS: In your test class, inherit from MsTestExtensions.BaseTest. Type Assert.Throws() or Assert.ThrowsAsync().. that's it! All of the standard Assert. methods from MsTest will still be available.

Project page can be found at:

Product Versions
.NET Framework net
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MSTestExtensions:

Repository Stars
SmsQuiz Project for blog series
Version Downloads Last updated
4.0.0 423,461 4/28/2015
3.0.0 32,082 11/29/2012
2.0.0 1,959 8/16/2012
1.0.1 1,714 2/5/2012
1.0.0 22,956 1/31/2012

* Added ThrowsAsync assertion
* Exception message no longer converts to uppercase for failures
* Added option to explicitly assert exception type i.e. ignore subclasses