Skip to content

Releases: fluentassertions/fluentassertions

7.0.0-alpha.3

26 Oct 13:29
Compare
Choose a tag to compare
7.0.0-alpha.3 Pre-release
Pre-release

Internal release needed to continue working on FluentAssertions.DataSets.

7.0.0-alpha.2

14 Oct 13:50
b43127c
Compare
Choose a tag to compare
7.0.0-alpha.2 Pre-release
Pre-release

Internal release needed to continue working on FluentAssertions.DataSets.

7.0.0-alpha.1

28 Aug 08:27
22ac70f
Compare
Choose a tag to compare
7.0.0-alpha.1 Pre-release
Pre-release

Internal release needed to continue working on FluentAssertions.DataSets.

6.12.0

23 Aug 10:53
340af80
Compare
Choose a tag to compare

What's Changed

New features

  • Added Be, NotBe and BeOneOf for object comparisons with custom comparer by @jnyrup in #2243
  • Extend AssemblyAssertions with HavePublicKey and BeUnsigned by @Corniel in #2207
  • Add NotContainItemsAssignableTo by @Leo506 in #2266

Improvements

  • Format records and anonymous types with their member values by @benagain in #2144
  • Improve caller identification for Visual Basic by @jnyrup in #2254

Fixes

  • Avoid quoting newlines by @jnyrup in #2202
  • Include because+becauseArgs when comparing collections of enums for equivalency by @jnyrup in #2214
  • Fix auto conversion to enums by @jnyrup in #2261

Documentation

Others

New Contributors

Full Changelog: 6.11.0...6.12.0

6.11.0

20 Apr 18:28
73eb919
Compare
Choose a tag to compare

What's Changed

New features

  • Added ThrowWithinAsync assertions by @lg2de in #1974
  • Add WithoutStrictOrderingFor overload with an expression by @chrischu in #2151

Improvements

  • Add support to convert into to enum by @sdelarosbil in #2147
  • Use ToString to format exceptions by @sdelarosbil in #2150

Fixes

  • Increase robustness of assertions when wrapped in an AssertionScope by @jnyrup in #2133
  • Ensured the maximum depth is properly respecting the "official" definition of depth by @dennisdoomen in #2145
  • Prevent NullReferenceException by @jnyrup in #2154
  • Make Excluding() work on nested collections if root is a collection by @whymatter in #2135
  • Prevent InvalidOperationException when formatting lambda expression by @jnyrup in #2176

Documentation

  • Add missing xml docs for parameters by @jnyrup in #2134
  • Fix xml docs for time-related assertions by @jnyrup in #2153
  • fix link to PR in release notes by @jnyrup in #2171
  • Do not interpret double braces as liquid template by @jnyrup in #2181

Others

New Contributors

Full Changelog: 6.10.0...6.11.0

6.10.0

11 Feb 15:58
Compare
Choose a tag to compare

What's Changed

Fixes

  • Declare System.Net.Http as a framework dependency by @AArnott in #2122
  • Improves how BeEquivalentTo handles fields hiding base-class fields by @dennisdoomen in #1990
  • Fix timeout check in WithResult extension by @lg2de in #2101
  • Avoid exceptions when wrapping in AssertionScope by @jnyrup in #2103

Others

New Contributors

Full Changelog: 6.9.0...6.10.0

6.9.0

12 Jan 14:51
Compare
Choose a tag to compare

What's Changed

New features

  • Added BeOneOf for IComparables and object comparisons. by @jez9999 in #2028
  • Add BeCloseTo() / NotBeCloseTo() to TimeOnlyAssertions by @IT-VBFK in #2030
  • Add ThatAre[Not]Abstract, ThatAre[Not]Static and ThatAre[Not]Virtual to PropertyInfoSelector by @94sedighi in #2054
  • Add ThatAre[Not]Abstract to MethodInfoSelector by @94sedighi in #2060
  • Add ThatAre[Not]Abstract to TypeSelector by @94sedighi in #2058
  • Add ThatAre[Not]Sealed to TypeSelector.cs by @94sedighi in #2059
  • Add ThatAre[Not]Interfaces to TypeSelector.cs by @94sedighi in #2057
  • Add extensions for OccurrenceConstraint that reads more fluently by @IT-VBFK in #2047
  • Add Imply() to BooleanAssertions by @IT-VBFK in #2074
  • Add ThatAre[Not]ValueTypes method to TypeSelector.cs by @94sedighi in #2083

Improvements

Fixes

  • Nested AssertionScopes do not print inner scope reportables by @94sedighi in #2044
  • Extend ThatArePublicOrInternal to also look at the setter of properties by @Ruijin92 in #2082
  • Treat record structs as records by @salvois in #2009

Documentation

Others

New Contributors

Full Changelog: 6.8.0...6.9.0

6.8.0

22 Oct 17:17
5772c29
Compare
Choose a tag to compare

What's Changed

New features

  • Extend collection assertions with ContainInConsecutiveOrder and NotContainInConsecutiveOrder by @StacyCash in #1963
  • Added NotCompleteWithinAsync for Task assertions by @lg2de in #1967
  • Added assertions for non-generic TaskCompletionSource by @lg2de in #1961
  • Exposes the IMonitor object to extensions methods. by @A-Kjeldgaard in #2010

Improvements

  • Optimize BeEquivalentTo by @jnyrup in #1939
  • Print commas at the end of the line by @ronaldkroon in #1945
  • Avoid allocating sub-arrays in ContainInOrder by @jnyrup in #1960
  • Extend IObjectInfo with info about DeclaringType by @dennisdoomen in #1950
  • Prepare constructors of AsyncFunctionAssertions to make them protected in V7 by @lg2de in #1972
  • Calculate the difference between the subject and the expected nearby time by @IT-VBFK in #2013

Fixes

Documentation

  • More specifically clarify the intentions of WithArgs by @jnyrup in #1929
  • Remove building link from the website by @IT-VBFK in #1934
  • Add Enum.BeOneOf to the docs by @jnyrup in #1958
  • Document how to use ModuleInitializer by @jnyrup in #1966
  • Fix a typo on the Assembly References documentation page by @asydikov in #1970
  • Update summary of EquivalencyValidator by @Wolgo in #1991
  • Improve error messages for accidental Equals usage by @nycdotnet in #2006

Others

New Contributors

Full Changelog: 6.7.0...6.8.0

6.7.0

18 May 16:40
c93639b
Compare
Choose a tag to compare

What's Changed

New features

  • Add BeDefined and NotBeDefined to EnumAssertions by @IT-VBFK in #1888
  • Restore basic assertions for collections in System.Data by @logiclrd in #1812
  • Add the ability to exclude non-browsable members from equivalency tests by @logiclrd in #1827
  • Add For/Exclude to allow exclusion of members inside a collection by @whymatter in #1782
  • Add overload to HaveElement() to be able to assert on occurrences for XDocument and XElement by @ITaluone in #1880

Fixes

  • Do not add all arguments of type T to the matching events, if one is found by @ITaluone in #1920

Documentation

Others

New Contributors

Full Changelog: 6.6.0...6.7.0

6.6.0

03 Apr 13:46
6419939
Compare
Choose a tag to compare

What's Changed

New features

  • Adding support for .NET6 DateOnly struct by @iliashkolyar in #1844
  • Adding support for .NET6 TimeOnly struct by @iliashkolyar in #1848
  • Extend NullableBooleanAssertions by NotBe() by @mu88 in #1865
  • Added a new overload to MatchRegex() to assert on the number of regex matches by @IT-VBFK in #1869

Improvements

  • Annotated [Not]MatchRegex with [StringSyntax("Regex")] by @jnyrup in #1816
  • Determine caller name for EnumAssertions.Be by @jnyrup in #1835
  • Add difference to numeric assertion failure messages by @iliashkolyar in #1859
  • Improve difference calculation of overflowing integrals by @jnyrup in #1875

Fixes

  • Ensure ExcludingMissingMembers doesn't undo usage of WithMapping by @dennisdoomen in #1838
  • Better support for NaN in numeric assertions on floats and doubles by @dennisdoomen in #1822
  • WithMapping now works in equivalency assertions on collections by @dennisdoomen in #1858
  • Better handling of NaN in nullable numeric assertions by @jnyrup in #1867

Documentation

Others

New Contributors

Full Changelog: 6.5.1...6.6.0