TestFirst.Net NuGet Package

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.




Got any TestFirst.Net Question?





Info

Version: 0.3.6-beta
Author(s): TestFirst.Net
Last Update: Thursday, September 24, 2015
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/TestFirstNet/TestFirst.Net/
NuGet Url: https://www.nuget.org/packages/TestFirst.Net


Install
Install-Package TestFirst.Net
dotnet add package TestFirst.Net
paket add TestFirst.Net
TestFirst.Net Download (Unzip the "nupkg" after downloading)

2 packages depend on this package.


Tags



STATS

must-have-score

.5

avg-downloads-per-day

2

days-since-last-release

3130