MSTestExtensions 4.0.0

Assert Exceptions in MSTest

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: https://github.com/bbraithwaite/MSTestExtensions

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.

Release Notes

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

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
4.0.0 172,610 4/28/2015
3.0.0 21,027 11/29/2012
2.0.0 916 8/16/2012
1.0.1 830 2/5/2012
1.0.0 737 1/31/2012