Skip to content
Cyrille DUPUYDAUBY edited this page Feb 21, 2018 · 5 revisions

NFluent allows to perform checks using specific fields/properties from the sut. It simplifies several testing scenarii such as DTO testing. Or typeless TDD.

Considering

Considering() allows you to specify which members should be evaluated/considered for the check. It will be followed by one or more member selectors.

Check.That(sut).Considering()...

Public

Specifies you are interested in public members. In C#, a member is considered public if it is declared as: public, protected or internal.

NonPublic

Specifies you are interested in non public members. In C#, a member is considered nonpublic if it is declared as: private.

Clone this wiki locally