TestFirst.Net
0.3.5-beta
See the version list below for details.
dotnet add package TestFirst.Net --version 0.3.5-beta
NuGet\Install-Package TestFirst.Net -Version 0.3.5-beta
<PackageReference Include="TestFirst.Net" Version="0.3.5-beta" />
paket add TestFirst.Net --version 0.3.5-beta
#r "nuget: TestFirst.Net, 0.3.5-beta"
// Install TestFirst.Net as a Cake Addin #addin nuget:?package=TestFirst.Net&version=0.3.5-beta&prerelease // Install TestFirst.Net as a Cake Tool #tool nuget:?package=TestFirst.Net&version=0.3.5-beta&prerelease
Testing library providing a fluent tdd/bdd testing approach. Easily extended and integrated
into your own testing tools (nunit, xunit, moq, etc).
Encourages the creation of easier to read and maintain testing code via the use of fluent builders for scenario's, given/when/thens,
Moq verification, List and Dictionary matchers
Available as via NuGet and compatible on both the Windows and Mono
As a quick example, the scenario:
"Given a registered user, with an account balance of 10 dollars, when 6 dollars is debited, then
expect that the account only has 4 dollars, and the transaction ledger records a 6 dollar debit"
can be written in TestFirst.Net as:
Scenario()
.Given(user = UserInTheDb().WithDefaults())
.Given(account = AccountInTheDb().For(user).Balance(10).Dollars())
.When(()=>account.debit(6))
.Then(
ExpectThat(TheAccountInTheDb.For(account)),
Is(AnAcccount.With().Balance(4).Dollars())
.Then(
ExpectThat(TheAccountLedgerInTheDb.For(account)),
Is(AnLedger.With().Debit(6).Dollars());
for more info see project page
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TestFirst.Net:
Package | Downloads |
---|---|
TestFirst.Net.Extensions
Provides the NUnit and Moq integration classes for TestFirst.Net. See TestFirst.Net docs |
|
TestFirst.Net.Performance
Provides the performance testing classes for TestFirst.Net. See TestFirst.Net docs on performance testing |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.3.6-beta | 2,158 | 9/24/2015 |
0.3.5-beta | 2,035 | 9/8/2015 |
0.3.4 | 4,246 | 9/6/2015 |
0.3.3 | 2,359 | 5/24/2015 |
0.3.2 | 2,413 | 5/20/2015 |
0.3.1 | 2,361 | 5/20/2015 |
0.3.0 | 2,350 | 5/20/2015 |
0.2.1 | 2,505 | 3/10/2014 |
0.2.0 | 2,573 | 2/16/2014 |
V0.3.5
===
* Add dot net dnx451 nuget output
V0.3.4
===
* Add dot net 450 nuget output
V0.3.3
===
* Updated : Fix regression issue on mismatch messages
* New : New matchers All.Of and Any.Of to improve fluency vs the use of Matchers.All and Matchers.Any
V0.3.2
===
* New : new match methods on AnArray and AByteArray
V0.3.1
====
* New : AList.InOrder().WithOnlyValues(..)
V0.3.0
====
Noteable changes
* Updated : AList now better supports mixed lists
* Updated : Improved diagnostic error messages
* Updated : Addition of new match methods on various matchers
* Updated : Various bug fixes
* Updated : Improve documentation
* New : Add new matchers AnException,AChar
* New : Add Expect.That(..).Throws(..) for exception testing
V0.2.1
====
* Release as NuGet package