Repository navigation
Member based
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() 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()...Specifies you are interested in public members. In C#, a member is considered public if it is declared as: public, protected or internal.
Specifies you are interested in non public members. In C#, a member is considered nonpublic if it is declared as: private.
- Welcome
- How to start
- Customising error messages
-
Check.That
- All (Equality, Type)
- Reference types
- Members based
- IEnumerable (Properties, Content, Elements)
- String (Properties, Content, RegExp )
- Numeric Type(Properties, Comparisons, Floating)
- Dictionary
- Char (Properties, Value)
- IComparable
- DateTime
- DateTimeOffset
- Misc: Boolean, TimeSpan, Stream, Enum, EventWaitHandle
- Check.ThatCode
- Check.ThatDynamic
- Extensibility
- Auxiliary types (TimeUnit)
- Mocks