Skip to content

Fluent Assertions for xUnit #19

@PerthCharern

Description

@PerthCharern

I am a big fan of the Fluent Assertions framework http://fluentassertions.com/, which integrates well with xUnit.

It gets rid of the Assert.XXX syntax and use a more human-readable actual.Should().Be().EqualTo(expected) syntax. It also provides out-of-the-box support for deep object comparison. The error message pinpoints where exactly two objects are different.

I don't see a downside except from an extra dependency. This project is available on NuGet and widely used though, so I don't think that's too big of an issue either.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions