TestFirst.Net
0.3.1
See the version list below for details.
dotnet add package TestFirst.Net --version 0.3.1
NuGet\Install-Package TestFirst.Net -Version 0.3.1
<PackageReference Include="TestFirst.Net" Version="0.3.1" />
paket add TestFirst.Net --version 0.3.1
#r "nuget: TestFirst.Net, 0.3.1"
// Install TestFirst.Net as a Cake Addin #addin nuget:?package=TestFirst.Net&version=0.3.1 // Install TestFirst.Net as a Cake Tool #tool nuget:?package=TestFirst.Net&version=0.3.1
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());
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,112 | 9/24/2015 |
0.3.5-beta | 1,984 | 9/8/2015 |
0.3.4 | 4,194 | 9/6/2015 |
0.3.3 | 2,309 | 5/24/2015 |
0.3.2 | 2,367 | 5/20/2015 |
0.3.1 | 2,320 | 5/20/2015 |
0.3.0 | 2,307 | 5/20/2015 |
0.2.1 | 2,473 | 3/10/2014 |
0.2.0 | 2,517 | 2/16/2014 |
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