Upgrading FluentAssertions 7 to 8
Breaking7.2.2 → 8.11.0Breaking22Security2Platform1New38Changed40Fixed41Other502
BreakingUpgrade verdict
22 breaking changes and a platform requirement change and 2 security fixes.
In plain terms
- Removes the obsolete OrEqualTo methods.
- Removes SpacesPerIndentionLevel.
- Removes the binary formatter.
- Renames EquivalencyAssertionOptions to EquivalencyOptions.
Must act Top 5 of 25 that need code or config changes
What you must change
Breaking22
Removes the obsolete OrEqualTo methods.
OrEqualToRemoves SpacesPerIndentionLevel.
SpacesPerIndentionLevelRemoves the binary formatter.
Renames EquivalencyAssertionOptions to EquivalencyOptions.
EquivalencyAssertionOptionsEquivalencyOptionsRenames
RespectingRuntimeTypes and RespectingDeclaredTypes to better clarify their purpose.RespectingRuntimeTypesRespectingDeclaredTypesRenames
ExcludingNestedObjects to WithoutRecursing to better describe its purpose.ExcludingNestedObjectsWithoutRecursingRemoves support for
HttpResponseMessage assertions.HttpResponseMessageMoves all DataSet, DataTable and DataRow support into the separate FluentAssertions.DataSets package.
DataSetDataTableDataRowChanges AllSatisfy to succeed on empty collections.
AllSatisfyAdds ForConstraint to IAssertionScope.
ForConstraintIAssertionScopeChanges OnlyContain to succeed on empty collections.
OnlyContainConverts AsyncFunctionAssertions into a real base class.
AsyncFunctionAssertionsMoves non-generic NotThrow and NotThrowAfter to ActionAssertions.
NotThrowNotThrowAfterActionAssertionsAllows fluently calling WithoutMatchingRules and WithoutSelectionRules while using BeEquivalentTo.
WithoutMatchingRulesWithoutSelectionRulesBeEquivalentToConsolidates namespace and file location.
Allows event monitoring to ignore failing event accessors.
Improves BeUpperCased and BeLowerCased semantics.
BeUpperCasedBeLowerCasedMakes various naming improvements.
Redesigns AssertionScope and how it travels over chained calls.
AssertionScopeSimplifies inheritance of SubsequentOrderingAssertions.
SubsequentOrderingAssertionsRedesigns Configuration, Services and AssertionOptions.
ConfigurationServicesAssertionOptionsMakes the equivalency validator core internal.
Security2
Prevents pwn-request RCE via the Qodana workflow.
QodanaHardens the NPM install step.
NPMPlatform1
Drops support for .NET Core.