NFluent, the .Net assertion lib (@NFluent) header
NFluent, the .Net assertion lib (@NFluent) profile picture

The official NFluent account. Look for tips, info and announcements. Use #NFluent liberally. You can send us flames, requests and praises.

France
Joined March 2014
Long time no post. A minor issue has been raised this week: failing Check.That(…).Verifies(…) may throw a FormatException instead of the appropriate one, hence missing the appropriate error message. A fix will be releases shortly.
1
187
What about this one? Less flashy, more stylish
2
Look Ma, I have asked MidJourney to draw a sexy logo for NFluent WDYT?
2
2
Hi everyone, I just pushed a new release (NFluent V2.8) that fixes problems with Newtonsoft JSon parser. nuget.org/packages/NFluent/2…
1
4
New: - Is : Like IsEqualTo but strongly typed - IsGreaterOrEqualThan and IsLesserOrEqualThan: added for clarity - error messages for enumeration are far better thant they used to
2
Major change: Equality logic is dramatically improved: - ISet (hashtable,…) and dictionaries are compared disregarding items order - you can provide custom equality provider - you can use anonymous type for simpler checks this will improve further for RC
1
Major release means spring clean up time, so there are a few breaking changes: - support dropped for Net <4.5 (except 3.5) - Check.ThatEnum(…) has been removed, you can use Check.That(…) instead - obsolete methods have been removed
Two major news today. First one is NFluent passed the million download mark this weekend!!! Second one is that NFluent V3 is available (alpha release) on Nuget!! It is alpha because some new feature may change before the RC. ⬇️
1
1
Right after Bastille’s Day, this is ‘oups’ day: I just discovered that some error messages about enumeration inverted the indexes between sut and expected. And none of you raised any issue about this?! Will be fixed in V3
It’s spring cleaning day. I have brushed up NFluent’s repo to update the contributing.md file as well as migrate to the new issue template system. Keep your tests in check, use @NFluent!
New official version released. it contains two fixes regarding IsEquivalentTo with Dictionnaries and IsZero will very small values. No breaking change introduced, so you can upgrade easily. nuget.org/packages/NFluent/2…
1
1
New issue found: IsEquivalent may fail on dictionnaries with non trivial keys. A fix is available in NFluent 2.7.2 (beta). Details here: github.com/tpierrain/NFluent…
New issue found: Check.That<double>(x).IsZero() will succeed with very small (absolute) value of x (<10^-29). A fix is available in NFluent 2.7.2 (beta). Details here: github.com/tpierrain/NFluent…
Do you know that even NFluent’s simplest checks are covered by at least 4 unit tests? One for the passing case, one for the failing one and another pair for when used with Not. there is a check for each possible error message, so more complex Checks have gens of unit tests !
1
3
Time to bump your dependencies. We have released NFluent V2.7.1. It containst an important fix for reflection based checks (HasFieldsWithSameValuesThan). Enjoy the last 2020’s release from us! nuget.org/packages/NFluent/2…
3
3
Hello everyone, Service Announcement: if you are using reflection based checks with NFluent (eg: HasFieldsWithSameValues or Considering), please try the new beta 2.7.1. There is an issue in NFluent <2.7.1 that leads to false positive see: github.com/tpierrain/NFluent…
1
I have just released the first NFluent Analyser! It helps you spot common mistakes. This is still an alpha release but please try and use it and help us extend its features! Nuget: nuget.org/packages/NFluent.A… VSix: marketplace.visualstudio.com…