Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 978 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 978 Bytes

FluentTests

An exploratory repo for looking into a way of creating "fluent" tests, inspired by FluentAssertions, but taking a similar approach to unit tests themselves

What is the goal?

Would like to be able to create tests where the entire test name is constructed from the test "steps" and that these steps are broken down into small enough chunks that they can be human readable

For example

Given("ABC").When(Reverse).Should().Be("CBA");

Which would generate the test name:

  • Given(ABC)_When(Reverse)_Should_Be(CBA)

Trouble Shooting

Until it is packaged properly you may find you get this if you import the library but don't also reference FluentAssertions. Adding FluentAssertions 6.9.0 via NuGet is the easiest way to fix

image

Contributions

Ideas, code, suggestions all most welcome :)