MSTestExtensions 4.0.0
dotnet add package MSTestExtensions --version 4.0.0
NuGet\Install-Package MSTestExtensions -Version 4.0.0
<PackageReference Include="MSTestExtensions" Version="4.0.0" />
paket add MSTestExtensions --version 4.0.0
#r "nuget: MSTestExtensions, 4.0.0"
// 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
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on MSTestExtensions:
Repository | Stars |
---|---|
bbraithwaite/SmsQuiz
SmsQuiz Project for blog series
|
* Added ThrowsAsync assertion
* Exception message no longer converts to uppercase for failures
* Added option to explicitly assert exception type i.e. ignore subclasses