Skip to content

sdcondon/FlUnit.Abstractions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlUnit Logo

FlUnit.Abstractions

NuGet version (FlUnit.Abstractions) NuGet downloads (FlUnit.Abstractions) Commits since latest release

This package contains abstractions shared between the core FlUnit library and test platform adapters. FlUnit is a test framework in which tests are written using builders that expose a fluent interface, like this:

public static Test SumOfEvenAndOdd => TestThat
  .GivenEachOf(() => new[] { 1, 3, 5 })
  .AndEachOf(() => new[] { 2, 4, 6 })
  .When((x, y) => x + y)
  .ThenReturns()
  .And((_, _, sum) => (sum % 2).Should().Be(1))
  .And((x, _, sum) => sum.Should().BeGreaterThan(x))
  .And((_, y, sum) => sum.Should().BeGreaterThan(y));

Full documentation for FlUnit can be found via the FlUnit repository readme.